Mutations
linkTaskLinkedObject
Links a task to an external resource by embedding the link on the task. Call this after createTask to link resources to the newly created task.
Template for Mutation:
mutation LinkTaskLinkedObject($hubId: ID!, $input: LinkTaskLinkedObjectInput!) {
linkTaskLinkedObject(hubId: $hubId, input: $input) {
taskLinkedObject {
id
}
}
}
Arguments
| hubId* ID non-null | The CommonWorkspace hub ID (a.k.a. ACE scope URN) of the hub that contains the task. |
| input* LinkTaskLinkedObjectInput non-null | Task id and external resource identifiers. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| LinkTaskLinkedObjectPayload |
Examples
Example 1
Links a design or drawing object to a task. Save the created link’s id
for use as linkedObjectId in unlinkTaskLinkedObject.
This request uses sample IDs. Use your hub ID, the task ID returned by
createTask, and the resourceUrn returned by linkedObjectDetails.
Query:
mutation LinkTaskLinkedObject($hubId: ID!, $input: LinkTaskLinkedObjectInput!) {
linkTaskLinkedObject(hubId: $hubId, input: $input) {
taskLinkedObject {
id
resourceUrn
workspace
objectType
sourceSystemId
name
thumbnailUrl
viewState
createdOn
}
}
}
Show More
Query Variables:
{
"hubId": "urn:adsk.ace:beta.scope:11111111-2222-4333-8444-555555555555",
"input": {
"taskId": "RkJrskZjToKCCgQEz_UvHg_aga",
"resourceUrn": "urn:adsk.wipprod:dm.lineage:EjRWeJCrTe-ACRI0VniQqw",
"workspace": "Design",
"sourceSystemId": "FUSION",
"objectType": "ROOT_COMPONENT"
}
}
Show More
Illustrative response
{
"data": {
"linkTaskLinkedObject": {
"taskLinkedObject": {
"id": "FUSION_urn:adsk.wipprod:dm.lineage:EjRWeJCrTe-ACRI0VniQqw_ROOT_COMPONENT_Design",
"resourceUrn": "urn:adsk.wipprod:dm.lineage:EjRWeJCrTe-ACRI0VniQqw",
"workspace": "Design",
"objectType": "ROOT_COMPONENT",
"sourceSystemId": "FUSION",
"name": "Mounting bracket",
"thumbnailUrl": null,
"viewState": "AVAILABLE",
"createdOn": "2026-11-30T22:34:10.000Z"
}
}
}
}
Show More