Skip to main content

Create a Contract

Create a Contract — POST

When creating a contract, you can provide:

  • A list of asset stonal UIDs
  • A list of stakeholder UIDs
  • A list of equipment types (holdertype codes)

This translates to: "I am creating a contract for this equipment type, within these assets, with these contacts as stakeholders."

curl --location 'https://api.stonal.io/datalake/v1/organizations/$organization/contracts' \
--header 'Authorization: Bearer $token' \
--header 'Content-Type: application/json' \
--data '{
"assets": ["uid1", "uid2"],
"stakeholders": ["uid1", "uid2"],
"equipments": ["EQUIPMENT|K|KG|KG08|KG0811"],
"effectiveDate": "2025-12-10",
"endDate": "2026-12-10"
}'

Response

A successful creation returns a HTTP 200 status.