cURL
curl --request POST \ --url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/users \ --header 'Content-Type: application/json' \ --header 'X-Management-Id: <api-key>' \ --header 'X-Management-Token: <api-key>' \ --data '{ "id": "<string>", "login": "<string>", "role": "<string>" }'
{ "id": "user_FgEAjOV6RiObJdy36sYynXdqZNiA5gjM", "login": "name@youremaildomain.com", "email": "name@youremaildomain.com", "first_name": "Sammy", "last_name": "Jones", "projects": { "proj_9KeAhZB1": "USER", "proj_npnFzPr9": "USER", "proj_pEP3NO9s": "USER", "proj_zsPdrUIw": "ADMIN" }, "is_owner": false }
Assigns a user to a given project. The user must be an existing user in Voucherify.
🚧 Correct Use of Data To avoid errors, use the "role" key with either "id" or "login" keys.
🚧 Correct Use of Data
To avoid errors, use the "role" key with either "id" or "login" keys.
"role"
"id"
"login"
Show child attributes
Was this page helpful?