Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
curl --request PUT \
--url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/users/{userId} \
--header 'Content-Type: application/json' \
--data '
{
"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
}Updates the user’s role.
curl --request PUT \
--url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/users/{userId} \
--header 'Content-Type: application/json' \
--data '
{
"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
}Documentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
Provide the unique identifier of the project.
"proj_TrlkLiH4"
Provide the unique identifier of the user. Alternatively, provide the user's login.
"user_v18mvPOjOXE5733eO4cAz8k1pn492wKK"
Defines the user's new role.
The role of the user to be added. It can be a custom role or one of following predefined roles:
ADMIN, USER, VIEWER, MERCHANTReturns the details about the user assigned to the project.
Details about the user assigned to the project.
The unique identifier of the user who has been assigned to the project.
The login data of the user who has been assigned to the project.
The email address of the user who has been assigned to the project.
The first name of the user who has been assigned to the project.
The last name of the user who has been assigned to the project.
Lists key-value pairs, where the key is the project to which the user is assigned. The value is the role assigned in a given project. The predefined Voucherify roles are: ADMIN, USER, VIEWER, MERCHANT, USER_RESTRICTED (for the Areas and Stores, an Enterprise feature).
Show child attributes
Determines if the user is the owner for the organization in Voucherify.
Was this page helpful?