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