Export a project component to the library
Exports a project component to the workspace library, making it available for reuse across all projects. The exported component includes all nested data (items, questions, todos, test cases, conditions) with ID references automatically updated. The component is placed at the end of the library with an optional custom name. Requires both Projects.manageComponents and ProjectComponentsLibrary.edit permissions.
/projects/{projectId}/components/{id}/exportAuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredprojectIdstringrequiredProject UUID
idstringrequiredComponent UUID to export
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.
compactfullLT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
fullapplication/jsonnamestringCustom name for the library component. If not provided, uses original component name.
Component exported to library successfully
idstringrequiredUUID of the created library component
Invalid projectId or component id format
Unauthorized - Invalid or missing authentication token
Insufficient permissions to manage components or edit library, or no access to project
Component not found, deleted, or does not belong to the specified project