Updates the specified role's name or default status. Changing the default role updates the previous default role.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
projectRoleIdstringRequiredThe id of the project role.
Request body Required
The model to update the project role.
application/json
namestringRequired0 maxLength: 255 The name of the project role. Required.
isDefaultboolean or nullOptionalWhether to use this role as default when adding new project members.
defaultProjectRoleIdstring or nullOptionalThe id of the new default project role. Required if the updated project role is the current default role.
allowOnlyProjectMasterDataReadbooleanOptionalWhether this role is allowed to have only read permissions for project-master-data.
Responses
200 OK
application/json
namestringRequired0 maxLength: 255 The name of the project role. Required.
isDefaultboolean or nullOptionalWhether to use this role as default when adding new project members.
defaultProjectRoleIdstring or nullOptionalThe id of the new default project role. Required if the updated project role is the current default role.
allowOnlyProjectMasterDataReadbooleanOptionalWhether this role is allowed to have only read permissions for project-master-data.
idstringOptionalThe id of the project role.
memberCountintegerOptionalThe count of members which are linked to this role.
membersarray of object or nullOptionalThe members which are linked to this role.
Show 10 properties
idstringOptionalThe id of the project member entity.
userIdstringOptionalThe id of the user who is this project member.
firstNamestring or nullOptionalThe first name of the user.
lastNamestring or nullOptionalThe last name of the user.
hasImageboolean or nullOptionalWhether the user has an image.
projectRoleIdstringOptionalThe project role of the project member.
projectRoleNamestring or nullOptionalThe project role name of the project member.
isResponsiblebooleanOptionalWhether the user is responsible for this project.
isDeactivatedbooleanOptionalWhether the user is deactivated.
isExternalbooleanOptionalTrue if this entity is coming from an external workspace (awork Connect).
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.