public
UserRole
Update the role of a User or a Group on an Application
Changed onpatch/orgs/{orgId}/apps/{appId}/users/{userId}
Request
- Base URLhttps://api.humanitec.io
- URLhttps://api.humanitec.io/orgs/{orgId}/apps/{appId}/users/{userId}
- Authnone declared
Path parameters
orgIdstring required
The Organization ID
appIdstring required
The Application ID
userIdstring required
The User or Group Id.
Request body
Example request
{
"role": "user"
}Response
The information about the User or the Group.
Example response
{
"created_at": "2020-12-19T09:32:46Z",
"email": "jo.trigg@awesomecorp.com",
"id": "730c1f96-8ee5-4bff-8c22-898e0530b924",
"invite": "accepted",
"name": "Jo Trigg",
"role": "manager",
"type": "user"
}Changes
- breaking
added the pattern
^[a-z0-9](?:-?[a-z0-9]+)+$to thepathrequest parameterappId - breaking
added the pattern
^[a-z0-9](?:-?[a-z0-9]+)+$to thepathrequest parameteruserId - breaking
the request property
became required - warning
for the
pathrequest parameterappId, the maxLength was set to50 - warning
removed the optional property
from the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the optional property
to the response with the status
- breaking