API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

PUT /v1/webhooks/{id}

PUT/v1/webhooks/{id}

CodeMeta OS API endpoint.

Request body

NameTypeDescription
namestring
urlstring<uri>
descriptionstring
eventTypesstring[]
entityTypesstring[]
timeoutMsinteger
maxRetriesinteger
retryBackoffMsinteger
isActiveboolean
allowedIpRangesstring[]
customHeadersobject

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Response codes

HTTP Meaning
200 Default Response

Search