Update support contingent
Updates an existing support contingent. All fields must be provided (full replacement).
Required fields:
title: Updated titlefromDate: Updated start datetoDate: Updated end datefrequency: Updated frequencyprice: Updated pricehours: Updated hours
Optional fields:
transferable: Updated transferability flag
Note: This is a full update operation. Use PATCH endpoint for partial updates.
PUT
/administration/project-settings/support-contingents/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredRequest body
requiredapplication/jsonfrequencynumberrequiredFrequency in months for the contingent period
fromDatestringrequiredStart date of the contingent period (ISO 8601 date format)
hoursnumberrequiredTotal hours allocated for the contingent period
pricenumberrequiredTotal price for the contingent period
titlestringrequiredTitle or name of the support contingent plan
toDatestringEnd date of the contingent period (ISO 8601 date format). If not set, the contingent is active forever.
transferablebooleanWhether unused hours can be transferred to the next period
Responses
200Support contingent updated successfully
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X PUT "https://leadtime.app/api/public/administration/project-settings/support-contingents/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"frequency": 12,
"fromDate": "2025-01-01",
"hours": 120,
"price": 10000,
"title": "Maintenance flatrate",
"toDate": "2025-12-31",
"transferable": false
}'const response = await fetch("https://leadtime.app/api/public/administration/project-settings/support-contingents/string", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"frequency": 12,
"fromDate": "2025-01-01",
"hours": 120,
"price": 10000,
"title": "Maintenance flatrate",
"toDate": "2025-12-31",
"transferable": false
})
});import requests
response = requests.put(
"https://leadtime.app/api/public/administration/project-settings/support-contingents/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"frequency": 12,
"fromDate": "2025-01-01",
"hours": 120,
"price": 10000,
"title": "Maintenance flatrate",
"toDate": "2025-12-31",
"transferable": False
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions