Roles

Replace a tenant role

Changed on

Only a user of the tenant primary account may edit roles (403 otherwise). Predefined roles are read-only, and a role ranked above the caller can not be edited. The same rank limit as creation applies. Portal access follows the change within seconds; API calls follow when the holders' tokens refresh.

put/v1/Roles/definitions/{id}

Request

  • Base URL
    https://api.invendor.com (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Authorization codehttps://identity.scanbro.com/connect/authorize
    Token URLhttps://identity.scanbro.com/connect/token
    Scopesio.common
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

idstring required

Role id

Query parameters

Accountunknown

Account

Request body

namestring nullable
descriptionstring nullable
rankinteger
permissionsstring[] nullable

Response

Success

idstring nullable
namestring nullable
descriptionstring nullable
rankinteger
isSystemboolean
permissionsstring[] nullable
holderCountinteger
canEditboolean
canDeleteboolean
canAssignboolean

Changes