---
title: "Switch to Custom Roles"
method: POST
path: "/org/{org_id}/switch_to_custom_roles"
tags: ["Custom Roles"]
---

# Switch to Custom Roles

`POST /org/{org_id}/switch_to_custom_roles`

Update the organization's Custom Roles switch status.
This endpoint allows you to enable or disable the Custom Roles feature for the organization, provided the organization is allowed to make this change.

## Path parameters

- `org_id` integer, required

## Request body

- object
  - `switch_to_custom_roles` boolean, required — Whether to switch to Custom Roles (true) or revert to standard roles (false)

## Response `200`

Successfully updated Custom Roles switch status

- object
  - `status` 'success', required — Request status
  - `org_id` integer, required — Unique identifier for the organization you want to switch. Only `PROVIDER` users can use this field. If you are not a `PROVIDER`, this will default to the ID of your organization.

## Other responses

- `400` — Your request is incorrect
- `401` — You are not authenticated
- `403` — You are not allowed to switch your organization to the new Custom Roles system.
- `404` — Resource does not exist

---

[API](https://skmtc.dev/partoo/apis/partoo-rest-api.md) · [All operations](https://skmtc.dev/partoo/apis/partoo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/partoo/partoo-rest-api/revisions/3652d8b1a8b3/schema)
