Check values against a version, optionally laid out (?layout=true)
POST
/v1/templates/{template}/versions/{version}/validate
const url = 'https://example.com/v1/templates/example/versions/example/validate?layout=true';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"additionalProperty":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://example.com/v1/templates/example/versions/example/validate?layout=true' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "additionalProperty": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”template
required
string
version
required
string
Query Parameters
Section titled “Query Parameters”layout
string
True: lay the values out too, judged as a render would be.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
The values to check, by field name, as a render’s values.
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Responses
Section titled “Responses”The answer.
Media typeapplication/json
object
valid
required
boolean
version
required
integer
Example generated
{ "valid": true, "version": 1}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"}Not there, or not the tenant’s.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}In conflict with what is there.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}Understood, but refused: values, layout or package problems.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}