Contracts - Protected
Update Contract
Changed onUpdate existing contract.
Business rules:
- Cannot modify closed contracts (IDestado = 2) unless explicitly changing state
- Partial updates supported (only changed fields)
put/api/contracts/{contract_id}
Request
- Base URLhttps://api.multigest.pt (the document declares no server; this is the origin it was published from)
- URLhttps://api.multigest.pt/api/contracts/{contract_id}
- AuthAPI key in header x-api-token and API key in header x-origin-verify
Path parameters
contract_idinteger required
Headers
x-api-tokenstring nullable
Request body
Response
Successful Response
Changes
- info
removed the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$from the request property/ - info
removed the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$from the request property/ - info
removed the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$from the request property/ - info
added the optional property
to the response with the status - info
the
/response's property pattern^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$was removed for the status
- info