Publish Data Endpoint
This endpoint is called to update the data on a specific work item. Five variables are required, the ‘work_id’, the ‘update_id’ (a unique GUID) and ‘section_name’ where the data is stored, the ‘data_path’ and the desired ‘data_value’. The bearer token is also required in authorization.
Request:
PATCH https://api.idiana.io/api/v3/work/update/{work_id}/{update_id}Data:
{
"operation": "set",
"jsonPath": {data_path},
"data": {
"value": {data_value}
},
"sectionName": {section_name},
"version": 1
}Headers:
accept: "application/json, text/plain, */*"
authorization: bearer {bearer}
content-type: "application/json-path+json"Example
Request:
curl -X 'PATCH' \
'https://api.idiana.io/api/v3/work/update/578bbf3f-3c45-4ad2-ad6c-8c11f06cd1f1/b176d0de-55e0-4629-bdff-ca773d57f034 \
-H 'accept: "application/json, text/plain, */*"
-H 'content-type: "application/json-patch+json"Data:
{
"operation":"set",
"jsonPath":"$.somedatapath.value",
"data":{
"value":42
},
"sectionName":"sectionName/sectionName",
"version":1
}Response: