---
title: "Role Configure"
method: POST
path: "/api/v1.admin.auth-role.configure"
tags: ["Admin"]
---

# Role Configure

`POST /api/v1.admin.auth-role.configure`

Create or update a role

## Request body

- AdminRoleConfigureIn
  - `id` string, required
  - `description` string, required
  - `rules` AccessRule[]
    - `effect` 'allow' | 'deny', required
    - `resource` string, required
    - `actions` string[], required
  - `policies` string[]
  - `context` object

## Response `200`

- AdminRoleConfigureOut
  - `id` string, required
  - `created` integer, required
  - `updated` integer, required

## Other responses

- `400`
- `401`
- `403`
- `422`

## Changes

- **2026-04-15** `02d9d270bbf9` — 1 info
  - endpoint added
- **2026-03-31** `f62be26d2a53` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/svix/apis/diom-api/changes/api/v1.admin.auth-role.configure/post.md)

---

[API](https://skmtc.dev/svix/apis/diom-api.md) · [All operations](https://skmtc.dev/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc.dev/svix/apis/diom-api/revisions/a13efaccef64?raw)
