Update multiple Task Links for a Schedule.
Task Link
Task Links show the logical and scheduling dependencies between activities within a plan. Links between two Tasks define a dependency between one Task and another. They are used to explicitly prevent tasks from being worked on out of sequence or offset the start/finish of one versus another.
V10 Endpoint
This endpoint is only supported by v10 schedules. The schedule type can be identified by querying the /schedules/{scheduleId} endpoint.
Operation
Operations, also known as LROs (Long Running Operations), are time-consuming tasks that would not be completed in the appropriate timeframe for a single request response. Endpoints that use operations return an operation id that can be used on a separate endpoint to track the progress of the task that is being handled.
Authentication
Requires Authorization header with valid Bearer token for scope itwin-platform.
For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.
Rate limits
All iTwin Platform API operations have a rate limit. For more documentation on that visit Rate limits and quotas page.
Request parameters
The unique identifier of the Schedule.
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Entity to update Task Links.
Request body
Task Links Update Request
Example
{ "taskLinks": [{ "calendarId": "03491225-5415-4b7c-90ec-4eb3e1357e30", "id": "91c3aaab-5c86-43ec-870d-6c34949ab1f3", "lag": 3600, "predecessorId": "cdefcd07-f200-403b-9b90-553e75ab06f2", "successorId": "7c54bfb6-82c0-44e7-b2fe-4d1d45928d1f", "type": "StartToFinish" }, { "calendarId": "cb36fb4b-530b-4e0f-8015-dee1fb025748", "id": "f241a781-a9bb-4f39-af1f-5e7280e56238", "lag": 3600, "predecessorId": "8c7fb7f6-b117-4923-a29c-971f4a1aafd9", "successorId": "60e90fa9-2e2f-49bf-87e4-98d2e1b442dc", "type": "FinishToStart" } ] }
Response 200 OK
This response indicates that the Task Links were Updated.
{ "operation": { "id": "1604789f-68c4-46ba-b20d-8a19f8319362" }, "taskLinks": [{ "calendarId": "03491225-5415-4b7c-90ec-4eb3e1357e30", "createdOn": "2025-01-29T11:19:00Z", "deleted": false, "id": "91c3aaab-5c86-43ec-870d-6c34949ab1f3", "lag": 3600, "predecessorId": "cdefcd07-f200-403b-9b90-553e75ab06f2", "successorId": "7c54bfb6-82c0-44e7-b2fe-4d1d45928d1f", "type": "StartToFinish" }, { "calendarId": "cb36fb4b-530b-4e0f-8015-dee1fb025748", "createdOn": null, "deleted": false, "id": "f241a781-a9bb-4f39-af1f-5e7280e56238", "lag": 3600, "predecessorId": "8c7fb7f6-b117-4923-a29c-971f4a1aafd9", "successorId": "60e90fa9-2e2f-49bf-87e4-98d2e1b442dc", "type": "FinishToStart" } ], "_links": { "operationLocation": { "href": "https://api.bentley.com/schedules/5e11b21e-cba2-48a8-a2c1-2977d2d373e0/operations/1604789f-68c4-46ba-b20d-8a19f8319362" } } }
Response headers
The unique identifier of the Operation.
URL to the Operations endpoint with pre-entered Operation ID.
Response 202 Accepted
This response indicates that the requested long-running operation was Accepted.
{ "operation": { "id": "1604789f-68c4-46ba-b20d-8a19f8319362" }, "taskLinks": [{ "id": "91c3aaab-5c86-43ec-870d-6c34949ab1f3" }, { "id": "f241a781-a9bb-4f39-af1f-5e7280e56238" } ], "_links": { "operationLocation": { "href": "https://api.bentley.com/schedules/5e11b21e-cba2-48a8-a2c1-2977d2d373e0/operations/1604789f-68c4-46ba-b20d-8a19f8319362" } } }
Response headers
The unique identifier of the Operation.
URL to the Operations endpoint with pre-entered Operation ID.
Response 400 Bad Request
The 400 (Bad Request) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax)
{ "error": { "code": "InvalidSchedulesRequest", "details": [{ "code": "InvalidProperty", "message": "The 'taskLinks' property must not contain more than 200 items." }], "message": "The request contains invalid properties." } }
Response 401 Unauthorized
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 403 Forbidden
User is not authorized to update Task Links.
{ "error": { "code": "InsufficientPermissions", "message": "The user has insufficient permissions for the requested operation." } }
Response 404 Not Found
This response indicates that the provided Schedule is not available.
{ "error": { "code": "ScheduleNotFound", "message": "Requested Schedule is not available.", "target": "scheduleId" } }
Response 429 Too many requests
This response indicates that the client sent more requests than allowed by this API for the current tier of the client.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Link
Hyperlink container.
Hyperlink to the specific entity.
{ "type": "object", "properties": { "href": { "type": "string", "description": "Hyperlink to the specific entity." } }, "additionalProperties": false, "description": "Hyperlink container." }
Operation Create Response Properties
Contains the id of the created long-running operation.
The unique identifier of the Operation.
{ "title": "Operation Create Response Properties", "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier of the Operation.", "nullable": true } }, "additionalProperties": false, "description": "Contains the id of the created long-running operation." }
Operation Location
Contains the URL to the Operations endpoint to check the information about a long-running operation.
{ "title": "Operation Location", "type": "object", "properties": { "operationLocation": { "$ref": "#/components/schemas/Link", "description": "URL to the Operations endpoint with pre-entered Operation ID." } }, "additionalProperties": false, "description": "Contains the URL to the Operations endpoint to check the information about a long-running operation." }
Task Link
Representation of a Task Link.
Unique identifier of the Calendar on which to define the Delay.
The date on which the Task Link was created.
Is this Task Link deleted.
The unique identifier of the Task Link.
The minimum amount of time set to constrain one Task from another. Negative lag is indicated with a negative sign (-).
The unique identifier of the predecessor Task.
The unique identifier of the successor Task.
{ "title": "Task Link", "type": "object", "properties": { "calendarId": { "type": "string", "description": "Unique identifier of the Calendar on which to define the Delay." }, "createdOn": { "type": "string", "description": "The date on which the Task Link was created.", "format": "date", "nullable": true }, "deleted": { "type": "boolean", "description": "Is this Task Link deleted.", "nullable": true }, "id": { "type": "string", "description": "The unique identifier of the Task Link." }, "lag": { "type": "integer", "description": "The minimum amount of time set to constrain one Task from another. Negative lag is indicated with a negative sign (-).", "format": "int32" }, "predecessorId": { "type": "string", "description": "The unique identifier of the predecessor Task." }, "successorId": { "type": "string", "description": "The unique identifier of the successor Task." }, "type": { "$ref": "#/components/schemas/TaskLinkType", "description": "Task Link Type." } }, "additionalProperties": false, "description": "Representation of a Task Link." }
Task Link Type
The link type: Finish to Start, Finish to Finish, Start to Start, or Start to Finish.
{ "title": "Task Link Type", "enum": [ "FinishToStart", "StartToFinish", "StartToStart", "FinishToFinish", "Unknown" ], "type": "string", "description": "The link type: Finish to Start, Finish to Finish, Start to Start, or Start to Finish." }
Task Links Operation Response
Container of Task Links Operation.
Contains properties of the created long-running operation.
Contains the hyperlink to the Operations endpoint to check the operation information.
{ "title": "Task Links Operation Response", "type": "object", "properties": { "operation": { "$ref": "#/components/schemas/OperationCreateResponseProperties", "description": "Contains properties of the created long-running operation.", "nullable": true }, "taskLinks": { "type": "array", "items": { "$ref": "#/components/schemas/TaskLinksResponseProperties" }, "description": "Properties of the Task Links in the Operation." }, "_links": { "$ref": "#/components/schemas/OperationLocationLink", "description": "Contains the hyperlink to the Operations endpoint to check the operation information.", "nullable": true } }, "additionalProperties": false, "description": "Container of Task Links Operation.", "x-codegen-extends-class": "OperationCreateResponse" }
Task Links Response Properties
Contains properties of the Task Link that is queued for the Operation.
The unique identifier of the Task Link.
{ "title": "Task Links Response Properties", "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier of the Task Link." } }, "additionalProperties": false, "description": "Contains properties of the Task Link that is queued for the Operation." }
Task Links Update Properties
Task Links properties for updating.
Unique identifier of the Calendar on which to define the Delay.
Unique identifier of the Task Link.
The minimum amount of time set to constrain one Task from another. Negative lag is indicated with a negative sign (-).
Unique identifier of the predecessor Task.
Unique identifier of the successor Task.
{ "title": "Task Links Update Properties", "type": "object", "properties": { "calendarId": { "type": "string", "description": "Unique identifier of the Calendar on which to define the Delay.", "nullable": true }, "id": { "type": "string", "description": "Unique identifier of the Task Link." }, "lag": { "type": "integer", "description": "The minimum amount of time set to constrain one Task from another. Negative lag is indicated with a negative sign (-).", "format": "int32", "nullable": true }, "predecessorId": { "type": "string", "description": "Unique identifier of the predecessor Task.", "nullable": true }, "successorId": { "type": "string", "description": "Unique identifier of the successor Task.", "nullable": true }, "type": { "$ref": "#/components/schemas/TaskLinkType", "description": "Task Link Type.", "nullable": true } }, "additionalProperties": false, "description": "Task Links properties for updating." }
Task Links Update Request
List of Task Links to update.
{ "title": "Task Links Update Request", "type": "object", "properties": { "taskLinks": { "type": "array", "items": { "$ref": "#/components/schemas/TaskLinksUpdateProperties" }, "description": "List of Task Links to update." } }, "additionalProperties": false, "description": "List of Task Links to update." }
Task Links Update Response
List of updated Task Links.
Contains properties of the created long-running operation.
Contains the hyperlink to the Operations endpoint to check the operation information.
{ "title": "Task Links Update Response", "type": "object", "properties": { "operation": { "$ref": "#/components/schemas/OperationCreateResponseProperties", "description": "Contains properties of the created long-running operation.", "nullable": true }, "taskLinks": { "type": "array", "items": { "$ref": "#/components/schemas/TaskLink" }, "description": "A list updated of Task Links." }, "_links": { "$ref": "#/components/schemas/OperationLocationLink", "description": "Contains the hyperlink to the Operations endpoint to check the operation information.", "nullable": true } }, "additionalProperties": false, "description": "List of updated Task Links.", "x-codegen-extends-class": "OperationCreateResponse" }
DetailedError
Contains error information and an array of more specific errors.
One of a server-defined set of error codes.
A human-readable representation of the error.
The target of the error.
{ "type": "object", "description": "Contains error information and an array of more specific errors.", "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "message": { "type": "string", "description": "A human-readable representation of the error." }, "target": { "type": "string", "description": "The target of the error.", "nullable": true }, "details": { "type": "array", "description": "Optional array of more specific errors.", "items": { "$ref": "#/components/schemas/Error" } } }, "required": [ "code", "message", "details" ], "additionalProperties": true }
Detailed Error Response
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.
{ "type": "object", "title": "Detailed Error Response", "description": "Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.", "properties": { "error": { "description": "Error Detailed information.", "$ref": "#/components/schemas/DetailedError" } }, "required": [ "error" ], "additionalProperties": false }
Error
Contains error information.
One of a server-defined set of error codes.
A human-readable representation of the error.
The target of the error.
{ "type": "object", "description": "Contains error information.", "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "message": { "type": "string", "description": "A human-readable representation of the error." }, "target": { "type": "string", "description": "The target of the error.", "nullable": true } }, "required": [ "code", "message" ], "additionalProperties": true }
Error Response
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.
{ "type": "object", "title": "Error Response", "description": "Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.", "properties": { "error": { "description": "Error information.", "$ref": "#/components/schemas/Error" } }, "required": [ "error" ], "additionalProperties": false }
Was this page helpful?