Skip to main content
PUT
/
management
/
v1
/
projects
/
{projectId}
/
custom-event-schemas
/
{customEventSchemaId}
Update Custom Event Schema
curl --request PUT \
  --url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/custom-event-schemas/{customEventSchemaId} \
  --header 'Content-Type: application/json' \
  --header 'X-Management-Id: <api-key>' \
  --header 'X-Management-Token: <api-key>' \
  --data '{
  "schema": {
    "properties": {}
  }
}'
{
  "id": "ms_u3bIQLbdU0fi3rhqpTLiF26T",
  "related_object": "reward",
  "properties": {
    "region": {
      "type": "string",
      "array": true,
      "optional": false,
      "object_type": null,
      "eq": [
        "EMEA",
        "APAC",
        "LATAM",
        "NA",
        "EU"
      ]
    }
  },
  "allow_defined_only": false,
  "created_at": "2024-04-29T12:03:55.991Z",
  "updated_at": "2024-04-29T12:06:20.866Z",
  "object": "metadata_schema"
}

Authorizations

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

Path Parameters

projectId
string
required
Example:
customEventSchemaId
string
required
Example:

Body

application/json
schema
object

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: