---
updatedAt: 2026-06-17T07:20:34.000Z
agentTools:
  projectIndex: https://readme.cipherowl.ai/llms.txt
---

# Upsert override

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "API ENDPOINTS",
    "description": "CipherOwl blockchain compliance and risk assessment APIs.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://svc.cipherowl.ai"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Private Data API",
      "description": "Manage organization-scoped screening overrides (allowlists and denylists) for blockchain addresses. An override is recorded on a network (`/networks/{network}/…`, e.g. `ethereum_mainnet`)."
    }
  ],
  "paths": {
    "/api/private-data/v1/overrides/networks/{network}/addresses": {
      "post": {
        "summary": "Upsert override",
        "operationId": "PrivateDataService_UpsertEntry",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpsertEntryResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "network",
            "description": "Network key the override is recorded on, for example `ethereum_mainnet`\nor `tron_mainnet`. Aliases such as `ethereum` resolve to the network key,\nwhich the entry echoes back. A chain family such as `evm` is not accepted.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "bitcoin_mainnet"
            }
          }
        ],
        "tags": [
          "Private Data API"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivateDataServiceUpsertEntryBody"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth 2.0 access token obtained from /oauth/token using client credentials."
      }
    },
    "schemas": {
      "PrivateDataServiceUpsertEntryBody": {
        "type": "object",
        "properties": {
          "listType": {
            "$ref": "#/components/schemas/v1ListType"
          },
          "address": {
            "type": "string"
          },
          "addLabels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "removeLabels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notes": {
            "type": "string"
          },
          "expectedVersion": {
            "type": "string",
            "format": "int64",
            "title": "0 for new entries, current version for updates"
          }
        },
        "title": "Request to create or update an entry"
      },
      "v1ListType": {
        "type": "string",
        "enum": [
          "LIST_TYPE_UNSPECIFIED",
          "LIST_TYPE_ALLOWLIST",
          "LIST_TYPE_DENYLIST"
        ],
        "default": "LIST_TYPE_UNSPECIFIED",
        "title": "ListType enum for override entries"
      },
      "v1OverrideEntry": {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "listType": {
            "$ref": "#/components/schemas/v1ListType"
          },
          "chain": {
            "type": "string",
            "description": "Network key the override is recorded on (e.g. `ethereum_mainnet`)."
          },
          "chainFamily": {
            "type": "string",
            "description": "Chain the network belongs to (e.g. `evm`)."
          },
          "address": {
            "type": "string"
          },
          "addLabels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "removeLabels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notes": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          },
          "version": {
            "type": "string",
            "format": "int64"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "title": "null if not deleted"
          },
          "updatedBy": {
            "type": "string"
          }
        },
        "title": "Override entry"
      },
      "v1UpsertEntryResponse": {
        "type": "object",
        "properties": {
          "entry": {
            "$ref": "#/components/schemas/v1OverrideEntry"
          },
          "created": {
            "type": "boolean",
            "title": "true if new entry, false if updated existing"
          }
        },
        "title": "Response from upsert operation"
      }
    }
  }
}
```