Create a new component library component
Creates a new library component (reusable workspace template) with name, description, icon, tags, and internal notes.
What are Library Components? Library components are workspace-wide reusable templates (projectId is null). They serve as blueprints that can be imported into projects to standardize recurring project types. Components connect requirements management, cost calculation, and execution in one unified workflow.
After Creating a Component: Once created, you can add items (Epics, Work Packages, Todo Lists, Test Suites) to define the component structure. You can also add questions to capture customer requirements, todos for checklists, and test cases for acceptance testing.
Component Placement: The component is automatically appended to the end of the library component list. You can reorder components later using the sort endpoint.
Content Format: Description and internal note fields accept HTML or Markdown input and are automatically converted to the internal IDoc format for storage. When retrieved, this content is converted back to HTML for easy consumption.
/administration/project-components/componentsAuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredfieldsToReturnstringresponseShapestringcompactfullLT-Response-Shapestringfullapplication/jsondescriptionstringrequirediconobject | nullinternalNotestringnamestringrequiredtagsstring[]idstring<uuid>curl -X POST "https://leadtime.app/api/public/administration/project-components/components" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"description": "<p>This module handles user authentication and authorization.</p>",
"icon": ":box:",
"internalNote": "<p>Internal implementation notes.</p>",
"name": "User Authentication Module",
"tags": [
"550e8400-e29b-41d4-a716-446655440000"
]
}'const response = await fetch("https://leadtime.app/api/public/administration/project-components/components", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"description": "<p>This module handles user authentication and authorization.</p>",
"icon": ":box:",
"internalNote": "<p>Internal implementation notes.</p>",
"name": "User Authentication Module",
"tags": [
"550e8400-e29b-41d4-a716-446655440000"
]
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/administration/project-components/components",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"description": "<p>This module handles user authentication and authorization.</p>",
"icon": ":box:",
"internalNote": "<p>Internal implementation notes.</p>",
"name": "User Authentication Module",
"tags": [
"550e8400-e29b-41d4-a716-446655440000"
]
},
){
"id": "e57dc37b-7693-4d06-b49c-17084b773aff"
}