The Website Item Group object
Attributes
Unique identifier for the object.
{
"id": "website-item-group_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_group": "item_group_example"
} /api/setup/website-item-group?parent_id={id} List website item groups by parent
Returns all website item groups belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of website item group objects belonging to the parent.
curl https://api.overplane.dev/api/setup/website-item-group?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "website-item-group_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_group": "item_group_example"
}
],
"has_more": false,
"total": 1
} /api/setup/website-item-group Create a website item group
Creates a new website item group object.
Body parameters
Returns
Returns the newly created website item group object if the call succeeded.
curl https://api.overplane.dev/api/setup/website-item-group \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"item_group":"item_group_example"}' {
"id": "website-item-group_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_group": "item_group_example"
} /api/setup/website-item-group/{id} Update a website item group
Updates the specified website item group by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the website item group to update.
Body parameters
Returns
Returns the updated website item group object.
curl https://api.overplane.dev/api/setup/website-item-group/website-item-group_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "website-item-group_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_group": "item_group_example"
} /api/setup/website-item-group/{id} Delete a website item group
Permanently deletes a website item group. This cannot be undone.
Path parameters
The identifier of the website item group to delete.
Returns
Returns a confirmation that the website item group has been deleted.
curl https://api.overplane.dev/api/setup/website-item-group/website-item-group_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "website-item-group_abc123",
"deleted": true
} /api/setup/website-item-group/reorder Reorder website item groups
Updates the sort order of website item groups within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/setup/website-item-group/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "website-item-group_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_group": "item_group_example"
}