Set Request Schema

PUT /request-schemas/{schemaid}

Set request schema to newer version

Path parameters

  • schemaid string Required

    Unique identifier of the request schema

    Minimum length is 24, maximum length is 24. Format should match the following pattern: SC[A-Za-z0-9_\-]+.

Query parameters

  • title string

    name of file

    Minimum length is 0, maximum length is 128. Format should match the following pattern: [a-zA-Z0-9 _-].

application/octet-stream

Body Required

Schema definition

string(binary) string(binary)

Minimum length is 2, maximum length is 355000.

Responses

  • 201

    Request schema file created successfully

  • 400 application/json

    Bad request

    Hide response attributes Show response attributes object
    • code string(string) Required

      Error code

      Minimum length is 1, maximum length is 64.

    • message string(string) Required

      Human-readable error message

      Minimum length is 1, maximum length is 1024.

  • 401 application/json

    Unauthorized request

    Hide response attributes Show response attributes object
    • code string(string) Required

      Error code

      Minimum length is 1, maximum length is 64.

    • message string(string) Required

      Human-readable error message

      Minimum length is 1, maximum length is 1024.

  • 404 application/json

    Resource not found

    Hide response attributes Show response attributes object
    • code string(string) Required

      Error code

      Minimum length is 1, maximum length is 64.

    • message string(string) Required

      Human-readable error message

      Minimum length is 1, maximum length is 1024.

  • 429 application/json

    Too many requests

    Hide response attributes Show response attributes object
    • code string(string) Required

      Error code

      Minimum length is 1, maximum length is 64.

    • message string(string) Required

      Human-readable error message

      Minimum length is 1, maximum length is 1024.

  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • code string(string) Required

      Error code

      Minimum length is 1, maximum length is 64.

    • message string(string) Required

      Human-readable error message

      Minimum length is 1, maximum length is 1024.

PUT /request-schemas/{schemaid}
curl \
 --request PUT '/api/v1/request-schemas/SCx3zt0ygAcQGBAQEBAQEBAQ' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/octet-stream" \
 --data-binary '{}'
Response examples (400)
{
  "code": "string",
  "message": "string"
}
Response examples (401)
{
  "code": "string",
  "message": "string"
}
Response examples (404)
{
  "code": "string",
  "message": "string"
}
Response examples (429)
{
  "code": "string",
  "message": "string"
}
Response examples (500)
{
  "code": "string",
  "message": "string"
}