Update Member Role
Updates the role of a member within the organization to admin or member.
- admin: Grants the member admin privileges within the organization
- member: Revokes admin privileges, setting the member as a regular user
Request
- The document declares no server URL.
- Auth: one of:
- HTTP basic
- API key in header Authorization
Path parameters
UID of the organization
Username of the user
Request body
Response
Example response
{
"url": "https://kf.kobotoolbox.org/api/v2/organizations/orgR6zUBwMHop2mgGygtFd6c/members/bob/",
"user": "https://kf.kobotoolbox.org/api/v2/users/bob/",
"invite": {
"url": "https://kf.kobotoolbox.org/api/v2/organizations/orgR6zUBwMHop2mgGygtFd6c/invites/f3ba00b2-372b-4283-9d57-adbe7d5b1bf1/",
"invited_by": "https://kf.kobotoolbox.org/api/v2/users/bob/"
}
}Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
added
subschema #1subschema #2to theresponse propertyoneOflist for the response status - breaking
the
response's property type changed fromstringto no type for status - info
removed the
adminenum value from theresponse property for the response status - info
removed the
memberenum value from theresponse property for the response status - info
removed the
ownerenum value from theresponse property for the response status
- breaking
- breaking
the
response's property type changed from no type tostringfor status - warning
added the new
adminenum value to theresponse property for the response status - warning
added the new
memberenum value to theresponse property for the response status - warning
added the new
ownerenum value to theresponse property for the response status - info
removed
subschema #1subschema #2from theresponse propertyoneOflist for the response status
- breaking