Update a Contract

PUT/api/contracts/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number Contract unique ID
title string optional Optional Title to update
status string optional Optional Status to update
note string optional Optional Note to update
content string optional Optional Content to update
curl -X PUT "https://yoursite.com/api/contracts/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "field": "value" }'

Success-Response:

HTTP/1.1 200 OK
{
  "status": 200,
  "messages": {"success": "Contract update success"}
}
MethodPUT
Path/api/contracts/{id}
GroupContracts
Sincev1.0.0
Defined inRestApi/Controllers/ContractsController.php