openapi: 3.1.0 info: version: '1.0' title: Zendesk Account Account Settings Custom Roles API description: Needs a description. tags: - name: Custom Roles paths: /api/v2/custom_roles: get: operationId: ListCustomRoles tags: - Custom Roles summary: Zendesk Get Api V2 Custom_roles description: '#### Availability * Accounts on the Enterprise plan or above #### Allowed For * Agents ' responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/CustomRolesResponse' examples: default: $ref: '#/components/examples/CustomRolesResponseExample' post: operationId: CreateCustomRole tags: - Custom Roles summary: Zendesk Post Api V2 Custom_roles description: '#### Availability * Accounts on the Enterprise plan or above #### Allowed for * Administrators * Agents with the `manage_roles` permission ' responses: '200': description: Created response content: application/json: schema: $ref: '#/components/schemas/CustomRoleResponse' examples: default: $ref: '#/components/examples/CustomRoleResponseExample' /api/v2/custom_roles/{custom_role_id}: parameters: - $ref: '#/components/parameters/CustomRoleId' get: operationId: ShowCustomRoleById tags: - Custom Roles summary: Zendesk Get Api V2 Custom_roles Custom_role_id description: '#### Availability * Accounts on the Enterprise plan or above #### Allowed for * Administrators * Agents with the `manage_roles` permission ' responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/CustomRoleResponse' examples: default: $ref: '#/components/examples/CustomRoleResponseExample' put: operationId: UpdateCustomRoleById tags: - Custom Roles summary: Zendesk Put Api V2 Custom_roles Custom_role_id description: '#### Availability * Accounts on the Enterprise plan or above #### Allowed for * Administrators Agents with the `manage_roles` permission ' responses: '200': description: Success response content: application/json: schema: $ref: '#/components/schemas/CustomRoleResponse' examples: default: $ref: '#/components/examples/CustomRoleResponseExample' delete: operationId: DeleteCustomRoleById tags: - Custom Roles summary: Zendesk Delete Api V2 Custom_roles Custom_role_id description: '#### Availability * Accounts on the Enterprise plan or above #### Allowed for * Administrators * Agents with the `manage_roles` permission ' responses: '204': description: No Contetnt response components: schemas: CustomRoleResponse: type: object properties: custom_role: $ref: '#/components/schemas/CustomRoleObject' CustomRolesResponse: type: object properties: custom_roles: type: array items: $ref: '#/components/schemas/CustomRoleObject'