You can use this endpoint to update reference field from Customer or Job.
{
"Customer": "string",
"Job": "string",
"ReferenceName": "string",
"ReferenceValue": "string"
}
Please note UpdateReferenceField are used if you want to update one reference field at a time.
You can do bulk update by using this endpoint.
api/QuoteProcess/UpdateAllReferenceFields
{
"Customer": "string",
"Customer_References": [
{
"Value": "string",
"Number": 0,
"DefaultValue": "string"
}
],
"Job": "string",
"Job_References": [
{
"Value": "string",
"Number": 0,
"DefaultValue": "string"
}
],
"QQDPKey": "string",
"QuoteDetailProduct_References": [
{
"Value": "string",
"Number": 0,
"DefaultValue": "string"
}
]
}
Example with this job.
Below for the existing value
By posting this payload
{
"Job": "02797",
"Job_References": [
{
"Value": "EndPoint Testing",
"Number": 1,
"DefaultValue": ""
},
{
"Value": 250,
"Number": 2,
"DefaultValue": ""
},
{
"Value": "Value 3",
"Number": 3,
"DefaultValue": ""
}
]
}
You will see this result on the screen.
You can map the value from GetReferenceField Endpoint.
Please note:
Our API end point will not check the data type you select in the reference.
Eg:
If in the Reference you put in "Number", and you pass on "String"
We will not throw an error, however the Reference value won't be updated.
You need to make sure the data that you pass using the correct Data Type.
You will get Number from Get