Request: POST
Signature: /api/v1/savedatafield
Updates one or more data fields for an item such as a bill, invoice, entity, asset, etc. The API expects a JSON body as shown in the sample request below.
The "Ref" parameter must be one of the following: asset, bill, invoice, location, payment, quotation, receipt, user, yardmove
The "RefID" parameter must be the ID of the item being updated.
The "Fields" parameter is an array that can contain multiple triplet parameters: Code, Value and Remarks (optional).
If the "Value" field contains a date/time, it is assumed to be UTC.
The token must be passed as a Header in the request.
Sample Request:
{
Ref: "bill",
RefID: 123,
"Fields": [
{
Code: "ABC",
Value: "New ABC Value",
Remarks: "New ABC Remarks"
},
{
Code: "XYZ",
Value: "New XYZ Value",
Remarks: "New XYZ Remarks"
}
]
}