API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

POST /v1/webhooks

POST/v1/webhooks

CodeMeta OS API endpoint.

Request body

NameTypeDescription
namerequiredstring
urlrequiredstring<uri>
descriptionstring
eventTypesrequiredstring[]
entityTypesstring[]
timeoutMsinteger
maxRetriesinteger
retryBackoffMsinteger
allowedIpRangesstring[]
customHeadersobject

Example

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
});

Response codes

HTTP Meaning
200 Default Response

Search