Omnia docs

Update view

Update a view's name and/or filters. filters replaces the entire filters object — include every criterion the view should keep.

PATCH
/api/v1/views/{view}

Authorization

BearerAuth
AuthorizationBearer <token>

API token authentication. Use format: Bearer ot_your-token-here

In: header

Path Parameters

view*string

Unique identifier for the view

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://app.useomnia.com/api/v1/views/550e8400-e29b-41d4-a716-446655440000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "brandId": "550e8400-e29b-41d4-a716-446655440000",
    "name": "US branded prompts",
    "filters": {
      "promptType": [
        "Branded"
      ],
      "countries": [
        "us",
        "de"
      ],
      "status": [
        "active"
      ],
      "tags": [
        "product",
        "high-priority"
      ],
      "tagsMatchMode": "any"
    },
    "createdAt": "2026-01-01T09:30:00Z",
    "updatedAt": "2026-01-01T09:30:00Z"
  }
}
{
  "error": {
    "code": 1002,
    "description": "Invalid input parameters"
  }
}
{
  "error": {
    "code": 1004,
    "description": "Invalid or expired API token"
  }
}
{
  "error": {
    "code": 1006,
    "description": "Item not found"
  }
}
{
  "error": {
    "code": 1008,
    "description": "Duplicated item"
  }
}
{
  "error": {
    "code": 1001,
    "description": "Internal error"
  }
}