Adds local team membership
POST/iam/teams/:id/users:add
Adds a list of users to a local team. Users are added by their membership_id. The request currently does not validate that membership_id maps to a real user.
The membership_id for users can be found via GET /iam/users/<user_id> (TODO).
Authorization Action:
iam:teamUsers:create
Request
Path Parameters
id stringrequired
- application/json
Body
required
membershipIds string[]required
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
membershipIds string[]
{
"membership_ids": [
"527ed96f-2ecb-4f8f-abd7-0bf6511459ac",
"353a62d4-85fa-4423-b12a-f6608a562ae9"
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...