v8

latestSwagger 2.02026-07-13183157.6 KB

Creates or updates a custom role definition.

put/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionName}

Path parameters

scopestring required

The scope of the role definition to create or update. Managed HSM only supports '/'.

roleDefinitionNamestring required

The name of the role definition to create or update. It can be any valid GUID.

Query parameters

api-versionstring required

The API version to use for this operation.

Request body

Response

The request has succeeded and a new resource has been created as a result.

idstring

The role definition ID.

namestring

The role definition name.

type'Microsoft.Authorization/roleDefinitions'

The role definition type.