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

Link multiple objects to one task

Creates any missing links; already-linked pairs are skipped. Task-side and object-side audit entries match the internal batch semantics.

POST/objects/tasks/link-batch
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Query parameters
fieldsToReturnstring

Comma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.

responseShapestring

Advanced 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:compactfull
Header parameters
LT-Response-Shapestring

Advanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.

Allowed:full
Request body
requiredapplication/json
objectIdsstring[]required

Object instance UUIDs (1–200; duplicates are ignored server-side)

taskIdstring<uuid>required

Task UUID

Responses
200
linkednumberrequired

Number of new links created (already-linked pairs are skipped)

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "https://leadtime.app/api/public/objects/tasks/link-batch" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "objectIds": [
    "string"
  ],
  "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8"
}'
Response
{
  "linked": 0
}