1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

Updated update team membership roles docs

This commit is contained in:
Radmacher 2021-11-10 16:43:07 +01:00
parent 5924026bb8
commit 4137bdb098
2 changed files with 3 additions and 2 deletions

View file

@ -473,8 +473,8 @@ App::patch('/v1/teams/:teamId/memberships/:membershipId')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_MEMBERSHIP)
->param('teamId', '', new UID(), 'The unique team ID.')
->param('membershipId', '', new UID(), 'Membership ID.')
->param('roles', [], new ArrayList(new Key()), 'Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Max length for each role is 32 chars.')
->param('membershipId', '', new UID(), 'The membership ID.')
->param('roles', [], new ArrayList(new Key()), 'An array of strings. Use this param to set the user\'s roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Max length for each role is 32 chars.')
->inject('request')
->inject('response')
->inject('user')

View file

@ -0,0 +1 @@
Use this endpoint to modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](/docs/permissions)