Skip to main content
POST
/
management
/
v1
/
projects
/
{projectId}
/
custom-event-schemas
Create Custom Event Schema
curl --request POST \
  --url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/custom-event-schemas \
  --header 'Content-Type: application/json' \
  --header 'X-Management-Id: <api-key>' \
  --header 'X-Management-Token: <api-key>' \
  --data '{
  "name": "<string>",
  "schema": {
    "properties": {}
  }
}'
{
  "id": "ms_GgjUlnCmbNV5z1pajU11NtnT",
  "name": "review",
  "schema": {
    "properties": {
      "published": {
        "type": "boolean",
        "optional": true
      }
    }
  },
  "created_at": "2024-04-29T11:25:44.458Z",
  "object": "custom-event-schema"
}

Authorizations

X-Management-Id
string
header
required
X-Management-Token
string
header
required

Path Parameters

projectId
string
required
Example:

Body

application/json
name
string
required
schema
object
required

Response

id
string
required
Example:
name
string
required
schema
object
required
created_at
string<date-time>
required
Example:
object
enum<string>
default:custom-event-schema
required
Available options:
custom-event-schema
Example:
updated_at
string<date-time>
Example: