v3

latestOpenAPI 3.0.3Apache-2.02026-08-08119359592.5 KB
Resource Restrictions

Restrict a resource

Mark a resource as restricted. Only space admins or users with the RESOURCE_RESTRICT permission can perform this action. Idempotent.

Payload Requirements

  • resource_id: The ID for the resource. Only project resources are currently supported. Other resource types are not currently supported and will return 400.

Valid example

{ "resource_id": "TW9kZWw6MTIxOmFCY0Q=" }

Invalid example

{ "resource_id": "Not a project ID" }

Returns 400 — only Project / Model IDs are accepted

<Note>This endpoint is in beta, read more here.</Note>

post/v2/resource-restrictions

Request body

resource_idstring required

A universally unique identifier (base64-encoded opaque string).

Example request

{
  "resource_id": "RW50aXR5OjEyMzQ1"
}

Response

A resource restriction record

resource_type'PROJECT' required

Type of the restricted resource.

  • PROJECT - A project within a space.
resource_idstring required

The ID of the restricted resource

created_atstring date-time required

When the restriction was created

Example response

{
  "resource_type": "PROJECT",
  "resource_id": "TW9kZWw6MTIxOmFCY0Q="
}