POST /v1/webhooks/{id}/test
POST/v1/webhooks/{id}/test
CodeMeta OS API endpoint.
Cuerpo de la solicitud
| Nombre | Tipo | Descripción |
|---|
eventTypeobligatorio | string | |
entityId | string | |
customPayload | object | |
Parámetros de ruta
| Nombre | Tipo | Descripción |
|---|
idobligatorio | string | |
Ejemplo
curl -X POST https://api.codemeta-os.de/v1/webhooks/{id}/test \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"eventType": "entity.created",
"entityId": "string",
"customPayload": null
}'
const result = await cm.webhooks.post({
"eventType": "entity.created",
"entityId": "string",
"customPayload": null
});
Códigos de respuesta
| HTTP |
Significado |
200 |
Default Response |