Zum Inhalt springen
Leadtime
Deutsch
Esc
↑↓navigieren↵öffnen⌘Jvorschau

Partially update a component library component

Updates only the provided fields of an existing library component (name, description, icon, tags, internalNote). The description and internalNote fields accept HTML or Markdown and will be converted to the internal format. Only library components (projectId is null) can be updated through this endpoint.

PATCH/administration/project-components/componentsDetails/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired

Component UUID

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
descriptionstring

Component description (HTML or Markdown)

iconobject | null

Icon identifier (can be set to null). Format: :icon_name: (e.g., :rocket:, :box:, :star:)

internalNotestring

Internal note (HTML or Markdown)

namestring

Component name

tagsstring[]

Array of tag IDs

Responses
200

Component updated successfully

idstring<uuid>
400

Invalid request: invalid UUID format for component ID or tag IDs

401

Unauthorized - Invalid or missing authentication token

403

Insufficient permissions to edit component library

404

Component not found, component does not belong to library (has projectId), or component already deleted

422

Editor content conversion errors

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH "https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "<p>This component handles user authentication and authorization.</p>",
  "icon": ":box:",
  "internalNote": "<p>Implementation notes for the development team.</p>",
  "name": "User Authentication Module",
  "tags": [
    "550e8400-e29b-41d4-a716-446655440000"
  ]
}'
Response
{
  "id": "e57dc37b-7693-4d06-b49c-17084b773aff"
}