Add a task that this task blocks
Links the specified task as blocked by this task. Blocking can cross projects in the same workspace. A cycle is rejected with TASK_BLOCKING_CYCLE.
POST
/tasks/{identifier}/blockingAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
identifierstringrequiredBlocker task UUID or numeric shortNumber
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/jsontaskIdstringrequiredUUID of an existing task to link. The task must exist in the workspace. A cycle is rejected with TASK_BLOCKING_CYCLE.
Responses
200Blocking link added successfully
accountableobjectAccountable user details
accountableIdstringAccountable user ID
assignedToobjectAssigned user details
assignedToIdstringAssigned user ID
billedbooleanrequiredWhether task is billed
blockedByIdsstring[]requiredTask IDs that currently block this task
blockingIdsstring[]requiredTask IDs that this task currently blocks
childSpentTimenumberrequiredChild tasks spent time in minutes
commentsobject[]requiredTask comments; each `body` is HTML and may contain the same embedded `appImage` / `appFile` / `appVideo` divs with `fileId` as the task description. Fetch binaries via authenticated `/api/public/workspace/files/{fileId}` with the same Public API Bearer token when needed.
componentItemIdobjectComponent item ID
createdAtstring<date-time>requiredTask creation timestamp
customFieldsobjectrequiredCustom fields values
deadlinestring<date-time>Task deadline
descriptionstringrequiredTask description in HTML. May include embedded assets as elements such as `<div data-type="appImage" fileId="…" filename="…">` (images), `appFile`, or `appVideo`—binary content is not embedded; use authenticated GET `{appOrigin}/api/public/workspace/files/{fileId}` with the same Public API Bearer token to retrieve it.
emailDetailsobjectEmail details
emailSendErrorstringEmail send error message
emailSendErrorCodestringEmail send error code
emailSendFailedAtstring<date-time>Email send failed timestamp
emailSendFailedTostring[]Email send failed recipients
enableSupportContingentbooleanrequiredEnable support contingent
estimatedTimenumberEstimated time in hours
guestAccessbooleanrequiredGuest access enabled for organization members
historyobject[]requiredTask history entries
iconobjectTask icon identifier in the format `:icon_name:` (e.g., `:rocket:`, `:bug:`, `:memo:`). Can be null if no custom icon is set.
iconIsGeneratingbooleanrequiredWhether icon is being generated by AI
idstringrequiredTask ID (UUID)
isBlockedbooleanrequiredTrue when at least one blocker is still New, In progress, Feedback, or Backlog
isChangeRequestbooleanrequiredWhether task is a change request
isParticipantbooleanrequiredWhether current user is a participant
notificationSettingsobjectrequiredNotification settings
parentTaskIdobjectParent task ID for subtasks
participantsCountnumberrequiredNumber of participants
participantsListstring[]requiredList of participant user IDs
priorityobjectrequiredTask priority (TaskPriority enum)
productsobject[]requiredTask products
projectobjectrequiredProject information
projectIdstringrequiredProject ID
quotationsobject[]requiredExpress quotations
shortNumbernumberrequiredTask short number (workspace-scoped)
skipFromBillingbooleanSkip from billing
spentTimenumberrequiredTotal spent time in minutes
statusIdstringrequiredTask status ID
subTasksIdsstring[]requiredChild task IDs
summarystringTask summary
summaryIsGeneratingbooleanrequiredWhether summary is being generated by AI
tagsstring[]requiredTask tags
titlestringrequiredTask title
titleIsGeneratingbooleanrequiredWhether title is being generated by AI
typeIdstringrequiredTask type ID
userIdstringrequiredCreator user ID
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/tasks/string/blocking" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"taskId": "550e8400-e29b-41d4-a716-446655440000"
}'const response = await fetch("https://leadtime.app/api/public/tasks/string/blocking", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"taskId": "550e8400-e29b-41d4-a716-446655440000"
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/tasks/string/blocking",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"taskId": "550e8400-e29b-41d4-a716-446655440000"
},
)Response
{
"accountable": {},
"accountableId": "string",
"assignedTo": {},
"assignedToId": "string",
"billed": true,
"blockedByIds": [
"string"
],
"blockingIds": [
"string"
],
"childSpentTime": 0,
"comments": [
{}
],
"componentItemId": {},
"createdAt": "2019-08-24T14:15:22Z",
"customFields": {},
"deadline": "2019-08-24T14:15:22Z",
"description": "string",
"emailDetails": {},
"emailSendError": "string",
"emailSendErrorCode": "string",
"emailSendFailedAt": "2019-08-24T14:15:22Z",
"emailSendFailedTo": [
"string"
],
"enableSupportContingent": true,
"estimatedTime": 0,
"guestAccess": true,
"history": [
{}
],
"icon": {},
"iconIsGenerating": true,
"id": "string",
"isBlocked": true,
"isChangeRequest": true,
"isParticipant": true,
"notificationSettings": {},
"parentTaskId": {},
"participantsCount": 0,
"participantsList": [
"string"
],
"priority": {},
"products": [
{}
],
"project": {},
"projectId": "string",
"quotations": [
{}
],
"shortNumber": 0,
"skipFromBilling": true,
"spentTime": 0,
"statusId": "string",
"subTasksIds": [
"string"
],
"summary": "string",
"summaryIsGenerating": true,
"tags": [
"string"
],
"title": "string",
"titleIsGenerating": true,
"typeId": "string",
"userId": "string"
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions