member

Create project member

Create project member relationship, the member can be one of the user_member and group_member, The user_member need to specify user_id or username. If the user already exist in harbor DB, specify the user_id, If does not exist in harbor DB, it will SearchAndOnBoard the user. The group_member need to specify id or ldap_group_dn. If the group already exist in harbor DB. specify the user group's id, If does not exist, it will SearchAndOnBoard the group.

post/projects/{project_name_or_id}/members

Path parameters

project_name_or_idstring required

The name or id of the project

Headers

X-Request-Idstring

An unique ID for the request

X-Is-Resource-Nameboolean

The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

Request body

role_idinteger

The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer

Response

Project member created successfully.

Changes

No recorded changes to this endpoint across all 1 revision of this API.