Creates a new project role.

POST

Creates a new project role.

Required Permissions: The user must be an admin or have workspace-manage-config:write permissions.

Request

This endpoint expects an object.
namestringRequired
The name of the project role. Required.
isDefaultbooleanOptional
Whether to use this role as default when adding new project members.
defaultProjectRoleIdstringOptional
The id of the new default project role. Required if the updated project role is the current default role.
allowOnlyProjectMasterDataReadbooleanOptional
Whether this role is allowed to have only read permissions for project-master-data.

Response

This endpoint returns an object
namestring
The name of the project role. Required.
isDefaultbooleanOptional
Whether to use this role as default when adding new project members.
defaultProjectRoleIdstringOptional
The id of the new default project role. Required if the updated project role is the current default role.
allowOnlyProjectMasterDataReadbooleanOptional
Whether this role is allowed to have only read permissions for project-master-data.
idstringOptional
The id of the project role.
memberCountintegerOptional
The count of members which are linked to this role.
memberslist of objectsOptional
The members which are linked to this role.
createdOndatetimeOptional
The date this entity was created.
createdBystringOptional
The id of the user who created this entity.
updatedOndatetimeOptional
The date this entity was last modified.
updatedBystringOptional
The id of the user who last modified this entity.