Waiting for engine...
Skip to main content

aiAgentTaskDelete

Updated 

Delete an AI Agent Task.

Description: This mutation deletes an AI Agent Task only if no association exists; if any association exists, it will throw an error.

Input Parameters:

  • id: ID! - Contains task ID.

Response:

  • Boolean - true if deletion was successful, false otherwise.

Example Request:

mutation DeleteAiAgentTask {
aiAgentTaskDelete(id: "c5839cd7-4936-4c83-8d14-bb2aa12b6cda")
}

Example Response (success):


{
"data": {
"aiAgentTaskDelete": true
}
}

Error Handling:

  • Validates that no association exists for the provided task; if any association exists, it will throw an error.
  • Validates task exists and belongs to provider account.
  • Returns descriptive error messages for invalid operations.
aiAgentTaskDelete(
id: ID!
): Boolean

Arguments​

aiAgentTaskDelete.id ● ID! non-null scalar miscellaneous {#id}

Type​

Boolean scalar miscellaneous

The Boolean scalar type represents true or false.

On this Page