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