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 · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredComponent UUID
Query 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/jsondescriptionstringComponent description (HTML or Markdown)
iconobject | nullIcon identifier (can be set to null). Format: :icon_name: (e.g., :rocket:, :box:, :star:)
internalNotestringInternal note (HTML or Markdown)
namestringComponent name
tagsstring[]Array of tag IDs
Responses
200Component updated successfully
idstring<uuid>400Invalid request: invalid UUID format for component ID or tag IDs
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to edit component library
404Component not found, component does not belong to library (has projectId), or component already deleted
422Editor content conversion errors
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"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"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"
]
})
});import requests
response = requests.patch(
"https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"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"
}Invalid request: invalid UUID format for component ID or tag IDs
Unauthorized - Invalid or missing authentication token
Insufficient permissions to edit component library
Component not found, component does not belong to library (has projectId), or component already deleted
Editor content conversion errors