User group permission set

  • PATCH
  • /workspaces
  • /:domain
  • /projects
  • /:project_name
  • /groups
  • /:group_id

Changes permission set of the selected user group in the project. Restricted to admins only.

Request

REQUIRED SCOPES
WORKSPACE
URL PARAMETERS
domainrequired string
The workspace domain.
project_namerequired string
The name of the project.
group_idrequired integer
The numerical ID of the user group.
POST PARAMETERS
permission_setrequired permission_set
Defines the permission set with which the user group is added to the project.

Last modified on Sep 23, 2024

Example:

curl -X PATCH "https://api.buddy.works/workspaces/:domain/projects/:project_name/groups/:group_id" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "permission_set": {
    "id": "2"
  }
}'
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/projects/2/group/2", "html_url": "https://app.buddy.works/buddy/company-website/team", "id": 2, "name": "Developers", "permission_set": { "url": "https://api.buddy.works/workspaces/buddy/permissions/2", "html_url": "https://app.buddy.works/buddy/permissions/edit/2", "id": 2, "name": "Read-only", "description": null, "type": "READ_ONLY", "repository_access_level": "READ_ONLY", "pipeline_access_level": "READ_ONLY", "sandbox_access_level": "READ_ONLY" } }
STATUS
200 OK
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999