Note: The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details. To access the API during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.inertia-preview+json
Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub Premium Support.
Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project admin to add a collaborator.
PUT /projects/:project_id/collaborators/:username
| Name | Type | Description |
|---|---|---|
permission |
string |
The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see "HTTP verbs." Can be one of:* read - can read, but not write to or administer this project.* write - can read and write, but not administer this project.* admin - can read, write and administer this project.Default: write
|
Status: 204 No Content