## Move a custom field group `PUT https://getkollek.com/api/collection-types/{collectionType}/custom-field-groups/{group}/order` Move a group one step up or down among the groups of its type. This is how the order of the sections on an item form is changed. Moving a group that is already first up, or already last down, leaves the order untouched and still returns a 200 response. **Permissions:** Owners and editors. Viewers get a 404 response. ### Path parameters - `collectionType` (integer, required): The ID of the collection type the group belongs to. - `group` (integer, required): The ID of the custom field group. ### Body parameters - `direction` (string, required): The direction to move the group in. One of up or down. **Returns:** The moved custom_field_group object, with its new position. ### Example request ```bash curl https://getkollek.com/api/collection-types/1/custom-field-groups/1/order \ -X PUT \ -H "Authorization: Bearer $API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "direction": "down" }' ``` ### Example response `Status: 200` ```json { "data": { "type": "custom_field_group", "id": "1", "attributes": { "name": "Publishing info", "position": 1, "created_at": 1752537600, "updated_at": 1752537600 }, "links": { "self": "https://getkollek.com/api/collection-types/1/custom-field-groups/1" } } } ```