Skip to main content

Grant a project to a group.

PATCH/api/v1/projects/{project_id}/access-grants/groups/{group_id}permissions:admin

Creates the grant if it is missing; a grant already there is unchanged. Every member of the group sees the project.

Scopepermissions:admin (sensitive)
AsynchronousNo
MCP toolupdate_project_group_access_grant
Portal permissionsmanage_project_security, grant_project_group_access

Parameters​

NameInTypeRequiredDescription
project_idpathstringRequired
group_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonProjectAccessGrantPatchInput
application/merge-patch+jsonProjectAccessGrantPatchInput

Responses​

StatusDescriptionBody
200Success.application/json ProjectAccessGrant or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

GrantPrincipal​

FieldTypeRequiredDescription
group_idstring or nullRequired
typestringRequireduser or group; everyone in the access listing for what is open to all.
user_idstring or nullRequired

GrantPrincipalPatchInput​

FieldTypeRequiredDescription
group_idstring or nullOptional
typestring or nullOptional
user_idstring or nullOptional

ProjectAccessGrant​

FieldTypeRequiredDescription
principalGrantPrincipalRequired

ProjectAccessGrantPatchInput​

FieldTypeRequiredDescription
principalGrantPrincipalPatchInput or nullOptional