Skip to main content
POST
Create type

Authorizations

Authorization
string
header
required

JWT bearer token obtained via the OAuth2 client-credentials grant from the platform Authentication API. The token's scopes gate the endpoints it may call, and its audience names the Guardian instance. This is the standard way to authenticate to Guardian.

Body

application/json
name
string
required

A display name for the type

Example:

"Loyalty Card"

schema
object
required

JSON Schema definition according to https://json-schema.org/draft/2020-12/schema

Example:

Response

Success response

id
string<uuid>
Example:

"9e5b3f7d-2c8a-4b6e-a1d9-6f4c8b2e5a7d"

created_at
string<date-time>
Example:

"2026-01-05T12:00:00Z"

name
string

A display name for the type

Example:

"Loyalty Card"

schema
object

JSON Schema definition according to https://json-schema.org/draft/2020-12/schema

Example: