Add roles to a user
1 min
PUT
https://api.upstartcommerce.com/profile-permissions/users/{userId}/roles
userIdstring<uuid>User identifier
acceptstringGenerated from available response content types
bodyobjectThe roles to assign to this user.
200Roles added successfully
400Invalid request parameters
401Missing or invalid authentication token
404User or role not found
500Internal server error
curl --request PUT \
--url https://api.upstartcommerce.com/profile-permissions/users/{userId}/roles \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"roleIds": []
}'