curl --request PATCH \
--url https://api.zenskar.com/contract_v2/{contract_id}/expire \
--header 'Content-Type: application/json' \
--header 'organisation: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"expiry_date": "2025-12-31"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Expire a contract by its ID. The contract will be marked as expired and adjusted to the specified expiry date (or today if not provided). The expiry time is automatically set to end of day (23:59:59.999999).
curl --request PATCH \
--url https://api.zenskar.com/contract_v2/{contract_id}/expire \
--header 'Content-Type: application/json' \
--header 'organisation: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"expiry_date": "2025-12-31"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs2.zenskar.com/llms.txt
Use this file to discover all available pages before exploring further.
Date to expire the contract (date only, not datetime). Defaults to today if not provided. Contract will be expired at end of day (23:59:59.999999).
"2025-12-31"
Successful Response