This endpoint allows the update of the external identifier (id_related or code_related) for a material requisition (outbound order) in Fracttal One. The update is performed on the annotations field of the outbound order, allowing you to associate or modify the external value reflected on the platform for integration or traceability purposes with other systems. Only the id_related or code_related fields within the requisition annotation can be modified.
Update the external identifier for a material requisition by sending the movement id in the URL and the property-value pair in the request body.
The _id_ parameter in the URL is the requisition movement ID. You can retrieve it here (field _id_).
Body parameters
Send the following information in the request body.
| Parameter | Type | Required | Description |
|---|---|---|---|
property | Text | Yes | Name of the property to update (id_related or code_related). |
value | Text | Yes | Value assigned to the specified property. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
id | Integer | Movement ID |
annotations | Object | JSON object with the updated outbound order annotations |
Inside annotations:
id_related: Updated value for theid_relatedproperty (string)code_related: Updated value for thecode_relatedproperty (string)
Both fields inside annotations reflect the current values after the update.
Example
Request: PUT
{
"property": "code_related",
"value": "test1234"
}Response:
{
"success": true,
"message": "200",
"data": {
"id": 38226228,
"annotations": {
"id_related": "test1234",
"code_related": "test1234"
}
},
"total": 1
} 200