v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Update OpenAPI spec

Updates the OpenAPI spec of a domain with a specified id

put/domains/{domain_id}/update/openapi-spec

Path parameters

domain_idinteger required

The ID of the domain to update the OpenAPI spec for

Request body

openapi_specstring required

The stringified OpenAPI Spec content. Format must be JSON or YAML.

Example request

{
  "openapi_spec": "{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Aikido Security DEMO\",\"version\":\"1.0.0\",}},\"paths\":{\"/test\":{\"get\":{}}}}"
}

Response

The OpenAPI Spec has been successfully updated

successinteger

An integer 1 indicating success

Example response

{
  "success": "1"
}