Update a schema
PUT https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas/{{schemaId}}
This endpoint is deprecated in Qodex v10 and higher.
Updates an API definition. The request body must contain a schema object with the following properties:
type— A string value that contains the API definition's type. One of:openapi3_1openapi3openapi2openapi1ramlraml1wsdl1wsdl2graphqlproto2graphqlproto3
language— A string value that contains the API definition's language. One of:- OpenAPI and RAML —
jsonoryaml - GraphQL —
graphql - WSDL —
xml - Protobuf —
proto
- OpenAPI and RAML —
schema— Optional. A string value that contains the API definition's contents.
Request Body
{"schema"=>{"language"=>"{{apiDefinitionLanguage}}", "schema"=>"{{apiDefinition}}", "type"=>"{{apiDefinitionType}}"}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"schema":{"id":"16bb367e-fafb-4ef3-933b-ee3d971866fb","language":"yaml","apiVersion":"a9879d02-74bf-425a-bbec-6d27aa135507","type":"openapi3","createdBy":"12345678","updatedBy":"12345678","createdAt":"2021-05-22T13:17:07.000Z","updatedAt":"2021-05-22T13:17:07.000Z"}}