---
title: "add role to db."
method: PUT
path: "/cc/v1/roles"
tags: ["Roles"]
---

# add role to db.

`PUT /cc/v1/roles`

Optional extended description in Markdown.

## Request body

- Role
  - `id` integer — the id of role
  - `name` string — the role
  - `remarks` string — the remarks of role
  - `enableFlag` integer — Whether the data is valid

## Response `200`

Detailed role and role information.

- Role
  - `id` integer — the id of role
  - `name` string — the role
  - `remarks` string — the remarks of role
  - `enableFlag` integer — Whether the data is valid

## Other responses

- `401` — Unauthorized
- `404` — url to add role not found.

---

[API](https://skmtc.net/webankfintech/apis/mlss-cc-api.md) · [All operations](https://skmtc.net/webankfintech/apis/mlss-cc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webankfintech/mlss-cc-api/versions/615a549c16f7/schema)
