Body
Required
-
The name of the bulk action to perform. Options:tasks_complete, tasks_archive, tasks_delete, tasks_attach, tasks_detach, tasks_sync, tasks_priority, tasks_status, tasks_taskable and tasks_due_date. * "tasks_complete" allows for the mass completion of tasks. * "tasks_delete" allows for the mass deletion of tasks. * "tasks_sync" is intended for syncing the chosen tasks with the selected accounts (This will overwrite any members previously selected with the newly chosen members.). * "tasks_attach" is intended for attaching the chosen members to the selected tasks. * "tasks_detach" is intended for detaching the chosen members from the selected tasks. * "tasks_archive" is intended for archiving the chosen tasks.
-
Only used for task bulk actions, whether to perform the bulk action recursively over all sub-tasks.
-
The items to perform the bulk action on. Send an array with a single * value instead of an array to select all items. Use filter to constrain all items.
-
The filters to apply to the bulk action. These can only be used on a catch-all bulk action.
-
Optional data reserved for specific bulk action requirements.
curl \
--request POST 'https://api.plannrcrm.com/api/v1/bulk-actions/execute' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"name":"Complete","is_recursive":true,"items":["952f4c61-3d9e-4dd8-bbeb-087059213775","804c4b61-e38b-4882-9899-9d64b1d859f4"],"filters":["related_items","taskable_uuid"],"data":["string"]}'
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Complete",
"is_recursive": true,
"items": [
"952f4c61-3d9e-4dd8-bbeb-087059213775",
"804c4b61-e38b-4882-9899-9d64b1d859f4"
],
"filters": [
"related_items",
"taskable_uuid"
],
"data": [
"string"
]
}
{}