aiAgentTaskDisassociation
UpdatedDisassociate AI Agent Task Associations from the AI Agent Registry.
Description: This mutation removes task - agent DRAFT version associations based on the input parameters. The task itself is never deleted, only associations are removed.
Deletion Logic:
- When
agentIdsis null, empty: Removes all agent DRAFT associations - When
agentIdscontains specific IDs: - Removes only the specified associations, keeps the task.
- When
agentIdscontains invalid IDs: Returns error without making changes.
Input Parameters:
input: AiAgentTaskDisassociationInput! - Contains task identification and version filtering.
Response:
- Boolean - true if disassociation was successful, false otherwise.
Example Request:
mutation DisassociateAiAgentTask {
aiAgentTaskDisassociation(input: {
id: "c5839cd7-4936-4c83-8d14-bb2aa12b6cda"
agentIds: ["37b35a1c-10d9-4be3-b5b9-604eb62f99f4", "4d9e7221-5cde-44dc-84f7-3175874e2725"]
})
}
Example Response (success):
{
"data": {
"aiAgentTaskDisassociation": true
}
}
Error Handling:
- Validates task exists and belongs to provider account.
- Validates agents exist and belong to the same provider account.
- Returns descriptive error messages for invalid operations.
aiAgentTaskDisassociation: Boolean
Type
Boolean scalar miscellaneous
The Boolean scalar type represents true or false.
Was this topic helpful?