Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | suppliers.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Action | Yes | The action to perform | action=update | |
Input | Yes | JSON string | See below |
JSON Input | Mandatory | Description | Examples |
---|---|---|---|
Identifier | Yes | Data to identify record | "supplieruuid":"1C740E283C8D2A41B4A1CA7E4964171B" |
Update Data | Yes | Data to update | "supplierCustomField321":"test" |
Example request:
http://<SERVER>/jsonapi/suppliers.json?user=user&password=user&version=3.9&action=update&input={
"data": [
{
"supplieruuid": "1C740E283C8D2A41B4A1CA7E4964171B",
"supplierCustomField321": "test"
}
]
}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"supplieruuid": "1C740E283C8D2A41B4A1CA7E4964171B",
"supplierCode": "1/",
"supplierTimeStampModified": 1540385243,
"supplierRecordVersionNumber": 2
}
]
}