Update a lifecycle webhook
import requests
url = "https://api.13-215-85-171.sslip.io/v1/lifecycle/webhooks/{id}"
payload = {
"url": "<string>",
"operations": [],
"signing_secret": "<string>",
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)curl --request PATCH \
--url https://api.13-215-85-171.sslip.io/v1/lifecycle/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"operations": [],
"signing_secret": "<string>",
"enabled": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"operations": [
"create"
],
"enabled": true,
"has_signing_secret": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_delivery_at": "2023-11-07T05:31:56Z",
"last_delivery_status": "queued",
"last_error": "<string>"
}
Machines
Update a lifecycle webhook
PATCH
/
v1
/
lifecycle
/
webhooks
/
{id}
Update a lifecycle webhook
import requests
url = "https://api.13-215-85-171.sslip.io/v1/lifecycle/webhooks/{id}"
payload = {
"url": "<string>",
"operations": [],
"signing_secret": "<string>",
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)curl --request PATCH \
--url https://api.13-215-85-171.sslip.io/v1/lifecycle/webhooks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"operations": [],
"signing_secret": "<string>",
"enabled": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"operations": [
"create"
],
"enabled": true,
"has_signing_secret": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_delivery_at": "2023-11-07T05:31:56Z",
"last_delivery_status": "queued",
"last_error": "<string>"
}
Body
application/json
Response
Updated lifecycle webhook