---
title: "Restrict a resource"
method: POST
path: "/v2/resource-restrictions"
tags: ["Resource Restrictions"]
---

# Restrict a resource

`POST /v2/resource-restrictions`

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**
```json
{ "resource_id": "TW9kZWw6MTIxOmFCY0Q=" }
```

**Invalid example**
```json
{ "resource_id": "Not a project ID" }
```
Returns 400 — only Project / Model IDs are accepted 

<Note>This endpoint is in beta, read more [here](https://arize.com/docs/ax/rest-reference#api-version-stages).</Note>

## Request body

- CreateResourceRestrictionRequest
  - `resource_id` string, required — A universally unique identifier (base64-encoded opaque string).

## Response `200`

A resource restriction record

- ResourceRestriction
  - `resource_type` 'PROJECT', required — Type of the restricted resource. - PROJECT - A project within a space.
  - `resource_id` string, required — The ID of the restricted resource
  - `created_at` string, date-time, required — When the restriction was created

## Other responses

- `400` — Invalid request
- `401` — Authentication is required
- `403` — Insufficient permissions to access this resource
- `404` — Not found
- `422` — Unprocessable entity
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/arize-ai/apis/arize-rest-api.md) · [All operations](https://skmtc.net/arize-ai/apis/arize-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/arize-ai/arize-rest-api/versions/2ce448f1de13/schema)
