---
title: "Create a new role"
method: POST
path: "/inter-api/supos/role"
tags: ["supos/userManage", "suposUserManage"]
---

# Create a new role

`POST /inter-api/supos/role`

## Request body

- RoleSaveReq
  - `allowResourceList` RoleResource[]
    - `methods` string[]
    - `policyId` string
    - `resourceId` string
    - `uri` string, required
  - `denyResourceList` RoleResource[]
    - `methods` string[]
    - `policyId` string
    - `resourceId` string
    - `uri` string, required
  - `id` string
  - `name` string, required

## Response `200`

A successful response.

- object
  - `code` integer
  - `data` RoleDetail
    - `denyResourceList` RoleResource[]
      - `methods` string[]
      - `policyId` string
      - `resourceId` string
      - `uri` string, required
    - `resourceList` RoleResource[]
      - `methods` string[]
      - `policyId` string
      - `resourceId` string
      - `uri` string, required
    - `roleId` string, required
    - `roleName` string, required
  - `msg` string

---

[API](https://skmtc.net/freezonex/apis/untitled-api.md) · [All operations](https://skmtc.net/freezonex/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freezonex/untitled-api/revisions/1837fd35a283/schema)
