API3
scottb at August 20th, 2025 15:35 — #1
I can't seem to find an endpoint in the swagger documentation for doing anything with predefined_action groups. I can see the group id returned when I request the predefined actions.
Adding an item to a group in the UI doesn't seem smooth yet. I have to take everything out of the group, add my new item, sort them, and then create the group again.
I am hoping I could instead do that from the API, so at least I can script it.
Can anybody point me to an endpoint for simple CRUD operations on the predefined_action_groups?
Thanks!
sajedalmorsy at August 26th, 2025 12:40 — #2
Thanks, @ScottB, for getting in touch.
Could you please elaborate more on why you are not able to add an item to the group from the UI?
You should be able to navigate to https://app.onepagecrm.com/catalog/bundles
Click on the group that you would like to add an item to. Then, click "Insert items" and add all the items you would like to include.
Then you can drag and drop them to put them in the order you want.
Please let me know if you are facing any issues with that.
Very best regards
Sajed Almorsy
OnePageCRM
sajedalmorsy at August 27th, 2025 07:26 — #3
Thanks, @ScottB, once again for getting in touch.
Back to this question again, Sorry for the confusion, I thought you were asking about the predefined_item_group
rather than the predefined_action_group
.
For the predefined_action_groups
, you can use the following API endpoint for the CRUD operations:
List:
GET
https://app.onepagecrm.com/api/v3/predefined_action_groups/
Show:
GET
https://app.onepagecrm.com/api/v3/predefined_action_groups/<PREDEFINED_ACTION_ID>
Destroy:
DELETE
https://app.onepagecrm.com/api/v3/predefined_action_groups/<PREDEFINED_ACTION_ID>
Create:
POST
https://app.onepagecrm.com/api/v3/predefined_action_groups/
with a body like:
{
"text": "Group name",
"position": 0,
"action_ids": [
"<ACTION_ID_1>",
"<ACTION_ID_2>"
]
}
Update:
PUT
https://app.onepagecrm.com/api/v3/predefined_action_groups/<PREDEFINED_ACTION_ID>
with a body like:
{
"text": "Group name",
"position": 0,
"action_ids": [
"<ACTION_ID_1>",
"<ACTION_ID_2>"
]
}
Powered by Discourse, best viewed with JavaScript enabled