Update a role
Update a custom role.
Path parameters
Short unique identifier for the merchant.
The ID of the role to retrieve.
Request body
Example request
{
"name": "Senior Shop Manager III",
"permissions": [
"catalog_edit",
"taxes_access",
"members_edit"
]
}Response
Returns the updated Role object if the update succeeded.
Example response
{
"id": "role_WZsm7QTPhVrompscmPhoGTXXcrd58fr9MOhP",
"name": "Senior Shop Manager II",
"description": "Manges the shop and the employees.",
"permissions": [],
"is_predefined": true,
"metadata": {},
"created_at": "2023-01-20T15:16:17Z",
"updated_at": "2023-01-20T15:16:17Z"
}Changes
Changed in 4 of the 53 revisions of this API.7
- ○
the security scope
roles.writewas added to the endpoint's security schemeoauth2api-security-scope-added
- ○
the security scope
user.subaccountswas added to the endpoint's security schemeoauth2api-security-scope-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status400response-media-type-name-specialized
- ○
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status404response-media-type-name-specialized
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the media type
application/jsonfor the response with the status400response-media-type-added
- ○
added the media type
application/jsonfor the response with the status404response-media-type-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○