API3
michal at February 18th, 2025 13:56 — #1
Hey,
is it possible to reorder next actions using API? I have a contact with an asap next action. I add a new next action with parameter asap but it becomes queued. How can I set that new action asap, and the previous one queued using API?
Thanks
Michal
mahmoud at February 19th, 2025 06:33 — #3
Hi @michal!
To resolve this, follow these two steps:
1. Update the previous action to set its status to "queued"
PATCH https://app.onepagecrm.com/api/v3/actions/<prev_action_id>?partial=true
{
"status": "queued"
}
2. Update the new action to set its status to "asap":
PATCH https://app.onepagecrm.com/api/v3/actions/<new_action_id>?partial=true
{
"status": "asap"
}
Hope this helps!
Regards,
Mahmoud
michal at February 19th, 2025 10:21 — #4
Thanks @mahmoud a lot. It works!
Regards
Michal
Powered by Discourse, best viewed with JavaScript enabled