Skip to content

Delete a permission grant ​

DELETE/api/v2/workspaces/{slug}/permissions/grants/{pk}/

Revoke a grant. The subject loses the relation, extra permissions, and refused permissions the grant carried on the resource. The subject keeps any access it has through another grant, a parent, or a teamspace. A successful delete returns 204 with an empty body.

You need the <resource_type>:manage permission on the grant's resource. Otherwise the response is 403. A grant that has already been deleted, or has expired, returns 404.

Membership grants

Grants that came from workspace, project, or teamspace membership are listed alongside the others. Deleting one here doesn't remove the member record. To remove a member, use the Members endpoints.

Path Parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

pk:requiredstring (uuid)

The id of the grant to revoke.

Scopes ​

workspaces.permissions:write

Errors ​

StatusCodeCause
400invalid_requestThe request could not be processed.
401unauthorizedMissing or invalid credentials.
402payment_requiredThe feature this endpoint belongs to isn't enabled on your plan, or is switched off.
403forbiddenYou can't manage access to the grant's resource, or your token scope doesn't allow this.
404not_foundNo such grant in this workspace, or it has already been deleted or has expired.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409conflictNot raised by this endpoint's own checks.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Delete a permission grant
bash
curl -X DELETE \
  "https://api.plane.so/api/v2/workspaces/my-team/permissions/grants/e2f9c4a7-1b8d-4c63-9e05-7a3b6d1f8c94/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response204

No response body.

Response403
json
{
  "type": "forbidden",
  "code": "forbidden",
  "detail": "You don't have permission to manage access to this resource."
}