Team Members
Update a team member's role.
Changed onChanges the role assigned to a team member. Only the team owner or a member with the appropriate permission can perform this action.
put/api/v1/teams/members/{userId}
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
userIdinteger required
The user ID of the team member.
Request body
Example request
{
"role_id": 2
}Response
Team member retrieved successfully
Example response
{
"status": "success",
"data": {
"user_id": 1,
"name": "John Doe",
"email": "user@example.com",
"role_id": 2,
"created_at": "2023-04-30 16:43:53"
}
}Changes
- info
endpoint added
- info