The JSON Schema of the values a version takes
GET
/v1/templates/{template}/versions/{version}/schema
const url = 'https://example.com/v1/templates/example/versions/example/schema';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/templates/example/versions/example/schema \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”template
required
string
version
required
string
Responses
Section titled “Responses”The answer.
Media typeapplication/schema+json
object
$schema
required
string
title
string
type
required
string
properties
required
Each field’s JSON Schema, by name.
object
key
additional properties
object
required
required
Array<string>
additionalProperties
required
boolean
Example generated
{ "$schema": "example", "title": "example", "type": "example", "properties": { "additionalProperty": {} }, "required": [ "example" ], "additionalProperties": true}No key, or not a valid one.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}