このユーザーへのロールの関連付け
post
/api/v2/users/{id}/roles/
このリソースに対してPOSTリクエストを行って、このユーザーにロールを追加または削除します。 次のフィールドを変更できます。
id: ユーザーに追加するロールID。(整数、必須)disassociate: ロールを削除する場合に指定します。(任意の値、オプション)
リクエスト
サポートされているメディア・タイプ
- application/json
パス・パラメータ
ルート・スキーマ : RoleSerializerWithParentAccess
型:
ソースを表示
object- description: string
タイトル:
Description読取り専用:true - id: integer
タイトル:
ID読取り専用:true - name: string
タイトル:
Name読取り専用:true - related: string
- summary_fields: string
タイトル:
Summary fields読取り専用:true - type: string
タイトル:
Type読取り専用:true - url: string
タイトル:
Url読取り専用:true
レスポンス
サポートされているメディア・タイプ
- application/json
201レスポンス
ルート・スキーマ : RoleSerializerWithParentAccess
型:
ソースを表示
object- description: string
タイトル:
Description読取り専用:true - id: integer
タイトル:
ID読取り専用:true - name: string
タイトル:
Name読取り専用:true - related: string
- summary_fields: string
タイトル:
Summary fields読取り専用:true - type: string
タイトル:
Type読取り専用:true - url: string
タイトル:
Url読取り専用:true