Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Get component library component details

Returns full details of a component library component including all nested children and metadata.

What are Library Components? Library components are workspace-wide reusable templates (projectId is null). They serve as blueprints that can be imported into projects. Unlike project components, library components contain no live data - no answers to questions, no task connections, and no evaluations.

All ProseMirror editor content (description, internalNote) is converted to HTML format. Only library components (projectId is null) are accessible through this endpoint.

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

Component UUID

Responses
200
childrenComponentChildrenShortItemDto[]required

Array of direct children items

Show properties
Array of ComponentChildrenShortItemDto
childrenComponentChildrenShortItemDto[]required

Nested children items

Show properties
Array of ComponentChildrenShortItemDto
Circular reference to ComponentChildrenShortItemDto.
conditionsValidbooleanrequired

Whether all conditions are valid

entityUniqueIdstringrequired

Entity unique ID

iconstring | nullrequired

Icon identifier in the format :icon_name: (e.g., :rocket:, :check:, :star:). Can be null if no icon is set.

idstringrequired

Unique identifier

namestringrequired

Name of the item

questionsCountnumberrequired

Count of questions

taskIdstring | nullrequired

Task ID if linked to a task

taskShortNumbernumber | nullrequired

Task short number if linked to a task

testCasesCountnumberrequired

Count of test cases

todosCountnumberrequired

Count of todo items

typestringrequired

Type of the component item. Items are the building blocks within components:

  • Epic: Groups related work packages around a common theme
  • WorkPackage: Self-contained task that delivers a tangible result
  • TodoList: Checklist of sub-steps or checkpoints
  • TestSuite: Formal acceptance tests with test cases
Allowed:EpicWorkPackageTodoListTestSuite
descriptionstringrequired

Component description in HTML format

discountAmountnumberrequired

Discount amount applied to this component. 0 means no discount.

discountTypestringrequired

Type of discount: "Fixed" (fixed amount) or "Percentage" (percentage of total price)

Allowed:FixedPercentage
iconstring | nullrequired

Icon identifier (nullable)

idstringrequired

Unique identifier for the component

internalNotestringrequired

Internal note in HTML format

namestringrequired

Name of the component

projectIdstring | nullrequired

Project ID (null for library components)

tagsstring[]required

Array of tags

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Parameters
Request
curl -X GET "https://leadtime.app/api/public/administration/project-components/componentsDetails/e57dc37b-7693-4d06-b49c-17084b773aff" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "children": [
    {
      "children": [
        {}
      ],
      "conditionsValid": true,
      "entityUniqueId": "unique-id-123",
      "icon": ":check:",
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "name": "Login Feature",
      "questionsCount": 2,
      "taskId": "550e8400-e29b-41d4-a716-446655440002",
      "taskShortNumber": 123,
      "testCasesCount": 3,
      "todosCount": 5,
      "type": "Epic"
    }
  ],
  "description": "<p>This module handles user authentication and authorization.</p>",
  "discountAmount": 10,
  "discountType": "Percentage",
  "icon": "faBox",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "internalNote": "<p>Internal implementation notes.</p>",
  "name": "User Authentication Module",
  "projectId": null,
  "tags": [
    "authentication",
    "security"
  ]
}