v1

latestOpenAPI 3.0.32026-07-2415128381.3 KB
Contributors

Update a contributor

Updates the properties of a contributor. Requires Manage contributors admin right.

If you want to give an existing contributor access to a new language, you must specify full languages array, including the previously added languages as well. You can pass role_id and permissions will be updated from permission template accordingly, in this case admin_rights param will be ignored

Requires <code>write_contributors</code> OAuth access scope.

put/projects/{project_id}/contributors/{contributor_id}

Path parameters

project_idstring required

A unique project identifier

contributor_idinteger required

A unique identifier of the contributor.

Request body

is_adminboolean

Whether the user has Admin access to the project. From the new permission release onwards is deprecated.

is_reviewerboolean

Whether the user has Reviewer access to the project. From the new permission release onwards is deprecated.

role_id1 | 2 | 3 | 4 | 5

Permission template id to take permissions from, if this parameter is provided, admin_rights is ignored.

admin_rightsstring[]

Custom list of user permissions. Possible values are <code>activity</code>,<code>contributors</code>,<code>branches_create</code>,<code>branches_main_modify</code>,<code>branches_merge</code>,<code>custom_status_modify</code>,<code>download</code>,<code>glossary</code>,<code>glossary_edit</code>,<code>glossary_delete</code>,<code>keys</code>,<code>manage_languages</code>,<code>review</code>,<code>screenshots</code>,<code>settings</code>,<code>statistics</code>,<code>tasks</code>,<code>upload</code>. Empty parameter will set default no rights for contributor.

Response

OK

project_idstring