---
title: "Update OpenAPI spec"
method: PUT
path: "/domains/{domain_id}/update/openapi-spec"
---

# Update OpenAPI spec

`PUT /domains/{domain_id}/update/openapi-spec`

Updates the OpenAPI spec of a domain with a specified id

## Path parameters

- `domain_id` integer, required

## Request body

- object
  - `openapi_spec` string, required — The stringified OpenAPI Spec content. Format must be JSON or YAML.

## Response `200`

The OpenAPI Spec has been successfully updated

- object
  - `success` integer — An integer 1 indicating success

## Other responses

- `400` — OpenAPI Spec could not be updated
- `404` — Domain not found

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
