Grant a contributor access to a project
Grant a user access to a project, or change the level they already hold. Requires administrator access to the project. Only meaningful for team contributors: owners and members already reach every project. Use it when a project administrator asks to give someone access to a single project, or to change that access.
Grant a user access to a project, or change the level they already hold. Requires administrator access to the project. Only meaningful for team contributors: owners and members already reach every project. Use it when a project administrator asks to give someone access to a single project, or to change that access.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
In: header
Path Parameters
1 <= length1 <= lengthIdentifier of the user — the user.id returned by listAccountMembers or listProjectContributors.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/projects/string/string/contributors/string" \ -H "Content-Type: application/json" \ -d '{ "level": "admin" }'{ "id": "string", "user": { "id": "string", "slug": "string", "name": "string" }, "level": "admin"}Revoke a contributor's access DELETE
Revoke a user's access to a project. Requires administrator access to the project, except when removing yourself — a contributor can always walk away from a project. Use it when someone should lose access to a project, or wants to leave it.
Transfer a project POST
Move a project to another account, optionally renaming it. The token must be scoped to both accounts, and the acting user must administer the project as well as the account receiving it. Use it when a project should move to another team or personal account.