Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

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 · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Query parameters
fieldsToReturnstring
Comma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestring
Advanced 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:compactfull
Header parameters
LT-Response-Shapestring
Advanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:full
Request body
requiredapplication/json
namestringrequired
Default work activity name (used as fallback when no translation exists for user's language)
translationsWorkActivityTranslationDto[]required
Language-specific translations for activity name. Overrides the default name when user's language matches.
Show properties
Array of WorkActivityTranslationDto
languagestringrequired
Language code following ISO 639-1 format (e.g., "en", "de", "fr")
namestringrequired
Translated name for this language. Overrides the default name when user's language matches.
Responses
200Work activity updated successfully
idstringrequired
Work activity ID
namestringrequired
Default work activity name (used as fallback when no translation exists for user's language)
sortnumberrequired
Sort order
translationsWorkActivityTranslationDto[]required
Language-specific translations for activity name. Overrides the default name when user's language matches.
Show properties
Array of WorkActivityTranslationDto
languagestringrequired
Language code following ISO 639-1 format (e.g., "en", "de", "fr")
namestringrequired
Translated 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"
    }
  ]
}'
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Development",
  "sort": 1,
  "translations": [
    {
      "language": "en",
      "name": "Development"
    }
  ]
}