---
title: "POST /api/add-role"
method: POST
path: "/api/add-role"
tags: ["Role API"]
---

# POST /api/add-role

`POST /api/add-role`

add role

## Request body

- ObjectRole
  - `createdTime` string
  - `description` string
  - `displayName` string
  - `domains` string[]
  - `isEnabled` boolean
  - `name` string
  - `owner` string
  - `roles` string[]
  - `users` string[]

## Response `200`

The Response object

---

[API](https://skmtc.net/casdoor/apis/casdoor-restful-api.md) · [All operations](https://skmtc.net/casdoor/apis/casdoor-restful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casdoor/casdoor-restful-api/versions/be9a5584b821/schema)
