curl --request POST \
--url https://api.example.com/usageevents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-environment: <x-environment>' \
--data '
{
"events": [
{
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"timestamp": "2023-12-25",
"record": {}
}
]
}
'{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Ingress events in bulk.
curl --request POST \
--url https://api.example.com/usageevents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-environment: <x-environment>' \
--data '
{
"events": [
{
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"timestamp": "2023-12-25",
"record": {}
}
]
}
'{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Configure which environment the request will handle. If the provided credentials do not allow access to this specified environment, a 403 Forbidden response is returned.
Array of usage-event. Maximum of 10 is allowed per batch ingress.
Show child attributes
Accepted
Was this page helpful?