Copy a role to a site
1 min
POST
https://api.upstartcommerce.com/profile-permissions/roles/{roleId}/copy-to-site
roleIdstringSource role identifier to copy
acceptstringGenerated from available response content types
bodyobject<p>The target site for the copy, and optionally a new name.</p>
201Role copied successfully
400Invalid request
401Missing or invalid authentication token
404Role or site not found
409Role with this name already exists at the site
500Internal server error
curl --request POST \
--url https://api.upstartcommerce.com/profile-permissions/roles/{roleId}/copy-to-site \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"siteId": ""
}'