Update work activity
Updates an existing work activity. All fields are required - provide complete activity configuration.
What can be updated:
- Activity name
- Multilingual translations
Important: This is a full update - all fields must be provided.
PUT
/administration/task-settings/activities/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredQuery parameters
fieldsToReturnstringComma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestringAdvanced override. Omit for the endpoint compact default. Use full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:
compactfullHeader parameters
LT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:
fullRequest body
requiredapplication/jsonnamestringrequiredDefault work activity name (used as fallback when no translation exists for user's language)
translationsWorkActivityTranslationDto[]requiredLanguage-specific translations for activity name. Overrides the default name when user's language matches.
Show propertiesHide properties
Array of
WorkActivityTranslationDtolanguagestringrequiredLanguage code following ISO 639-1 format (e.g., "en", "de", "fr")
namestringrequiredTranslated name for this language. Overrides the default name when user's language matches.
Responses
200Work activity updated successfully
idstringrequiredWork activity ID
namestringrequiredDefault work activity name (used as fallback when no translation exists for user's language)
sortnumberrequiredSort order
translationsWorkActivityTranslationDto[]requiredLanguage-specific translations for activity name. Overrides the default name when user's language matches.
Show propertiesHide properties
Array of
WorkActivityTranslationDtolanguagestringrequiredLanguage code following ISO 639-1 format (e.g., "en", "de", "fr")
namestringrequiredTranslated name for this language. Overrides the default name when user's language matches.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X PUT "https://leadtime.app/api/public/administration/task-settings/activities/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Development",
"translations": [
{
"language": "en",
"name": "Development"
}
]
}'const response = await fetch("https://leadtime.app/api/public/administration/task-settings/activities/string", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"name": "Development",
"translations": [
{
"language": "en",
"name": "Development"
}
]
})
});import requests
response = requests.put(
"https://leadtime.app/api/public/administration/task-settings/activities/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"name": "Development",
"translations": [
{
"language": "en",
"name": "Development"
}
]
},
)Response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Development",
"sort": 1,
"translations": [
{
"language": "en",
"name": "Development"
}
]
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions