| PUT | /api/v1/direktkosten |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Direktkosten | body | Direktkosten | Yes | |
| RelatedToObjekt | body | RelatedTo | Yes | |
| RelatedToNutzer | body | RelatedTo | Yes | |
| BearerToken | body | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Guid | form | Guid | No | |
| Label | form | string | No | |
| Date | form | DateTime | No | |
| Brutto | form | decimal | No | |
| SalesTax | form | decimal | No | |
| Quantity | form | decimal | No | |
| Type | form | string | No | Allowable Values
|
| IsDeleted | form | bool | No | |
| IsCreatedByApp | form | bool | No | |
| NutzerGuid | form | Guid | No | |
| BillingInformation | form | BillingInformation | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Guid | form | string | No | |
| From | form | DateTime | No | |
| To | form | DateTime | No | |
| IsCompleted | form | bool | No | |
| HasNebenkosten | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Guid | form | Guid | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /api/v1/direktkosten HTTP/1.1
Host: g-lange-servdesk.eras-online.de
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
direktkosten:
{
guid: 00000000000000000000000000000000,
label: String,
date: 0001-01-01T00:00:00Z,
brutto: 0,
salesTax: 0,
quantity: 0,
type: String,
isDeleted: False,
isCreatedByApp: False,
nutzerGuid: 00000000000000000000000000000000,
billingInformation:
{
guid: String,
from: 0001-01-01T00:00:00Z,
to: 0001-01-01T00:00:00Z,
isCompleted: False,
hasNebenkosten: False
}
},
relatedToObjekt:
{
guid: 00000000000000000000000000000000
},
relatedToNutzer:
{
guid: 00000000000000000000000000000000
},
bearerToken: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}