API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola

POST /v1/webhooks

POST/v1/webhooks

CodeMeta OS API endpoint.

Cuerpo de la solicitud

NombreTipoDescripción
nameobligatoriostring
urlobligatoriostring<uri>
descriptionstring
eventTypesobligatoriostring[]
entityTypesstring[]
timeoutMsinteger
maxRetriesinteger
retryBackoffMsinteger
allowedIpRangesstring[]
customHeadersobject

Ejemplo

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

Códigos de respuesta

HTTP Significado
200 Default Response

Búsqueda