PUT /v1/webhooks/{id}
PUT/v1/webhooks/{id}
CodeMeta OS API endpoint.
Request Body
| Name | Typ | Beschreibung |
|---|
name | string | |
url | string<uri> | |
description | string | |
eventTypes | string[] | |
entityTypes | string[] | |
timeoutMs | integer | |
maxRetries | integer | |
retryBackoffMs | integer | |
isActive | boolean | |
allowedIpRanges | string[] | |
customHeaders | object | |
Pfad-Parameter
| Name | Typ | Beschreibung |
|---|
iderforderlich | string | |
Beispiel
curl -X PUT https://api.codemeta-os.de/v1/webhooks/{id} \
-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,
"isActive": false,
"allowedIpRanges": [],
"customHeaders": null
}'
const result = await cm.webhooks.put({
"name": "string",
"url": "string",
"description": "string",
"eventTypes": [],
"entityTypes": [],
"timeoutMs": 0,
"maxRetries": 0,
"retryBackoffMs": 0,
"isActive": false,
"allowedIpRanges": [],
"customHeaders": null
});
Antwortcodes
| HTTP |
Bedeutung |
200 |
Default Response |