Skip to main content

Update a Contract (partial)

Partial Update — PATCH

Partially updates a contract.

Important: This API works with lists. The update replaces the entire field value:

  • To add an item: send the current list plus the new item
  • To remove an item: send the current list minus the targeted item

Pay special attention to the fields: assetUids, stakeholderUids and equipments.

curl --location --globoff --request PATCH 'https://api.stonal.io/datalake/v1/organizations/$organization/contracts/$contractCode' \
--header 'Authorization: Bearer $token' \
--header 'Content-Type: application/json' \
--data '{
"equipments": ["EQUIPMENT|K|KG|KG08|KG0811"]
}'