POSTBearer token
Enable or disable a member
/api/v1/team/member/access
Change another member's access to the team.
Before you call
Disabling revokes that member's team tokens immediately. Remove machine passwords and SSH keys separately. You cannot disable yourself or the master.
Request example
cURL
curl "https://tovahub.com/api/v1/team/member/access" -X POST \
-H "Authorization: Bearer $TOVAHUB_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"userId": "507f1f77bcf86cd799439013",
"enabled": true,
"confirm": true
}'Examples only. No requests are sent from this page.
Illustrative response
JSON
{}Parameters
userIdJSON body · Requiredstring
Member user ID (24 hexadecimal characters).
enabledJSON body · Requiredboolean
The new enabled state.
confirmJSON body · Requiredtrue
Explicit confirmation is required.
Response
HTTP status 200
Enable or disable the selected other team member.