API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

POST /v1/webhooks

POST/v1/webhooks

CodeMeta OS API endpoint.

Request body

NaamTypeBeschrijving
namevereiststring
urlvereiststring<uri>
descriptionstring
eventTypesvereiststring[]
entityTypesstring[]
timeoutMsinteger
maxRetriesinteger
retryBackoffMsinteger
allowedIpRangesstring[]
customHeadersobject

Voorbeeld

curl -X POST https://api.codemeta-os.de/v1/webhooks \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "name": "string",
  "url": "string",
  "description": "string",
  "eventTypes": [],
  "entityTypes": [],
  "timeoutMs": 0,
  "maxRetries": 0,
  "retryBackoffMs": 0,
  "allowedIpRanges": [],
  "customHeaders": null
}'
const result = await cm.webhooks.post({
  "name": "string",
  "url": "string",
  "description": "string",
  "eventTypes": [],
  "entityTypes": [],
  "timeoutMs": 0,
  "maxRetries": 0,
  "retryBackoffMs": 0,
  "allowedIpRanges": [],
  "customHeaders": null
});

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken