---
title: "POST /api/openapi/integrations/{slug}/spec"
method: POST
path: "/api/openapi/integrations/{slug}/spec"
tags: ["openapi"]
---

# POST /api/openapi/integrations/{slug}/spec

`POST /api/openapi/integrations/{slug}/spec`

## Path parameters

- `slug` string, required

## Request body

- object
  - `spec` union
    - object
      - `kind` 'url', required
      - `url` string, required
    - object
      - `kind` 'blob', required
      - `value` string, required
  - `specOverrides` union[], nullable
    - union
      - object
        - `op` 'add', required
        - `path` string, required
        - `value` unknown, required
      - object
        - `op` 'remove', required
        - `path` string, required
      - object
        - `op` 'replace', required
        - `path` string, required
        - `value` unknown, required
      - object
        - `op` 'move', required
        - `path` string, required
        - `from` string, required
      - object
        - `op` 'copy', required
        - `path` string, required
        - `from` string, required
      - object
        - `op` 'test', required
        - `path` string, required
        - `value` unknown, required

## Response `200`

Success

- object
  - `slug` string, required
  - `toolCount` union, required
    - number
    - 'NaN'
    - 'Infinity'
    - '-Infinity'
    - 'Infinity' | '-Infinity' | 'NaN'
  - `addedTools` string[], required
  - `removedTools` string[], required

## Other responses

- `400` — OpenApiParseError | OpenApiExtractionError | OpenApiOAuthError | OpenApiSpecOverrideError
- `404` — IntegrationNotFoundError
- `500` — InternalError

---

[API](https://skmtc.net/executor/apis/executor-api.md) · [All operations](https://skmtc.net/executor/apis/executor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/executor/executor-api/revisions/c1ec5e355d44/schema)
