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
Example request
{
"resource_id": "RW50aXR5OjEyMzQ1"
}Response
A resource restriction record
Example response
{
"resource_type": "PROJECT",
"resource_id": "TW9kZWw6MTIxOmFCY0Q="
}