To create a copy of an existing record while maintaining specific elements, use the copyTodo
mutation:
mutation CopyTodo {
copyTodo(
input: {
title: "new todo"
todoId: "todo-id"
todoListId: "todo-list-id"
options: [
DESCRIPTION
DUE_DATE
CHECKLISTS
ASSIGNEES
TAGS
CUSTOM_FIELDS
]
}
) {
success
}
}
x-bloo-token-id: "your-token-id"
x-bloo-token-secret: "your-token-secret"
x-bloo-project-id: "project-id-or-slug"
x-bloo-company-id: "company-id-or-slug"
Field | Type | Required | Description |
---|---|---|---|
title | String | Yes | New title for the copied record |
todoId | String | Yes | ID of the record to copy |
todoListId | String | Yes | ID of the list to create the copy in |
options | Array | Yes | Data elements to copy from original record |
The options
array accepts these values:
Option | Description |
---|---|
DESCRIPTION | Copies the record's description |
DUE_DATE | Copies the due date and timezone |
CHECKLISTS | Copies all checklists and their items |
ASSIGNEES | Copies all assigned users |
TAGS | Copies all associated tags |
CUSTOM_FIELDS | Copies all custom field values |
{
"data": {
"copyTodo": {
"success": true
}
}
}
FORBIDDEN
error code.Common error codes for this operation:
BAD_USER_INPUT
: Invalid todoId or todoListIdFORBIDDEN
: Insufficient permissionsGRAPHQL_VALIDATION_FAILED
: Missing required fieldsSee Error Codes for complete reference.