---
title: 设置分享参与人的权限角色
description: POST /nd/api/share/set_participant_role：设置分享参与人的权限角色 接口说明，包含路径、方法、参数和返回信息。
slug: api-post-nd-api-share-set-participant-role
lang: zh
category: 分享 API
category_order: 8
order: 134
api_method: POST
api_path: /nd/api/share/set_participant_role
api_label: 设置分享参与人的权限角色
keywords:
  - API
  - 设置分享参与人的权限角色
  - /nd/api/share/set_participant_role
---

# 设置分享参与人的权限角色

| 属性 | 值 |
| --- | --- |
| HTTP 方法 | `POST` |
| 接口路径 | `/nd/api/share/set_participant_role` |
| 所属分类 | 分享 API |

## 接口说明

接口路径：`/nd/api/share/set_participant_role`

HTTP 方法：`POST`


**HTTP 方法：** `POST`

#### POST 请求体参数

参数名 Comment(说明)
file_id 文件 id（必填） string
babelshare_id int（必填） 用户 id string
role_id int（必填） 角色 id string
#### 返回字段说明

{"code":0,"success":true}

## 调用说明

- 调用前需完成 [获取 token](api-post-api-token-do.md) 或相应免登录认证，并在请求 Header 中携带 `Authorization: Bearer <access_token>`。
- 参数和返回字段如因部署版本存在差异，应以实际私有云 API 文档和联调结果为准。
- 所属分类：分享 API。
