enforces that a user has ONLY the specified team membership
Note: the user making this callust have organization or team admin rights to be able to add users to a team
The X-Auth-Token and X-User-Id are derived from the values authToken and userId returned from the login endpoint and are used in the HTTP header.
X-Auth-Token
X-User-Id
authToken
userId
{ "teamIDs":[ "<team id 1>","<team id 2>"], "email":"<email of user>" }
Returns the status of the request
You should get back:
Last updated 2 years ago
POST /api/enforceteammembership X-Auth-Token:<insert token here> X-User-Id:<insert user id here> { "teamIDs":["<teamid1>", "<teamid2>"], "email": "email1@test.com" }
{ "status": "success", }