| PUT | /Accounting/Locations/ |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Item | body | Location | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| locationid | form | int | No | |
| mgrid | form | int? | No | |
| name | form | string | No | |
| namee | form | string | No | |
| hcode | form | string | No | |
| brid | form | int | No | |
| hrclvl | form | int | No | |
| hccrt | form | string | No | |
| mgridp | form | int | No | |
| Branch | form | Branch | No | |
| branch_id | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BranchID | form | int | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| Spend | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Item | form | Location | 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 /Accounting/Locations/ HTTP/1.1
Host: 10.10.0.107
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Item:
{
locationid: 0,
mgrid: 0,
name: String,
namee: String,
hcode: String,
brid: 0,
hrclvl: 0,
hccrt: String,
mgridp: 0,
Branch:
{
BranchID: 0,
Name: String,
Description: String,
Spend: False
},
branch_id: 0
}
}
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
}
},
Item:
{
locationid: 0,
mgrid: 0,
name: String,
namee: String,
hcode: String,
brid: 0,
hrclvl: 0,
hccrt: String,
mgridp: 0,
Branch:
{
BranchID: 0,
Name: String,
Description: String,
Spend: False
},
branch_id: 0
}
}