API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

POST /v1/webhooks

POST/v1/webhooks

CodeMeta OS API endpoint.

Corps de la requête

NomTypeDescription
nameobligatoirestring
urlobligatoirestring<uri>
descriptionstring
eventTypesobligatoirestring[]
entityTypesstring[]
timeoutMsinteger
maxRetriesinteger
retryBackoffMsinteger
allowedIpRangesstring[]
customHeadersobject

Exemple

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

Codes de réponse

HTTP Signification
200 Default Response

Recherche