projectMembers

Adds a member to the specified project.

Changed on

Adds a member to the specified project. The member can be responsible when no other responsible member exists, and the selected role must be available for the project's type. <Check title="Required Permissions" icon="key">The user must be the project creator or have project-master-data:manage permission for the project.</Check>

post/projects/{projectId}/addprojectmember

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/projects/{projectId}/addprojectmember
  • Auth: HTTP bearer

Path parameters

projectIdstring uuid required

The id of the project.

Request body

userIdstring uuid required

The id of the member.

projectRoleIdstring uuid required

The id of the project role for this member.

isResponsibleboolean

Whether the user should be marked as responsible.

Response

OK

idstring uuid

The id of the project member entity.

userIdstring uuid

The id of the user who is this project member.

firstNamestring nullable

The first name of the user.

lastNamestring nullable

The last name of the user.

hasImageboolean nullable

Whether the user has an image.

projectRoleIdstring uuid

The project role of the project member.

projectRoleNamestring nullable

The project role name of the project member.

isResponsibleboolean

Whether the user is responsible for this project.

isDeactivatedboolean

Whether the user is deactivated.

isExternalboolean

True if this entity is coming from an external workspace (awork Connect).

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostProjectAddProjectMemberByProjectId removed and replaced with projectMembers_PostProjectAddProjectMemberByProjectId