แก้ไข endpoint
PATCHhttps://api.checkslip.com/api/webhooks/endpoints/{endpoint_id}
ใช้ API key
ส่งเฉพาะฟิลด์ที่จะเปลี่ยน (url, description, event_types, enabled) แบบ JSON Merge Patch (Content-Type: application/merge-patch+json) · เปลี่ยน url แล้วระบบเช็ก URL ใหม่เหมือนตอนเพิ่ม และส่งอีเมลแจ้งเจ้าของบัญชี · ส่ง enabled เป็น false เพื่อหยุดส่ง และ true เพื่อเปิดอีกครั้ง · ระหว่างที่ปิด ข้อความใหม่ไม่ถูกเก็บไว้เลย เปิดกลับมาแล้วตามเก็บไม่ได้ · ส่งซ้ำตามช่วงเวลาใช้ได้เฉพาะรายการที่ส่งแล้วไม่สำเร็จ (FAILED) · ใช้ API key ที่มีสิทธิ์ webhook:manage
Parameters
| ฟิลด์ | ส่งทาง | ชนิด | จำเป็น |
|---|---|---|---|
endpoint_id | path | string | ใช่ |
traceparent | header | string | ไม่ |
Request body
application/merge-patch+json
| ฟิลด์ | ชนิด | จำเป็น |
|---|---|---|
url | string (uri) | ไม่ |
description | string | null | ไม่ |
event_types | slip.checked | webhook.test[] | ไม่ |
enabled | boolean | ไม่ |
Responses
200 application/json
| ฟิลด์ | ชนิด | จำเป็น |
|---|---|---|
id | string | ใช่ |
url | string (uri) | ใช่ |
description | string | null | ใช่ |
event_types | slip.checked | webhook.test[] | ใช่ |
enabled | boolean | ใช่ |
disabled_reason | MANUAL | GONE | FAILING | null | ใช่ |
secret_hint | string | ใช่ |
previous_secret_expires_at | string (date-time) | null | ไม่ |
created_at | string (date-time) | ใช่ |
updated_at | string (date-time) | ใช่ |
Error ที่อาจได้
400401403404422
error ในรูป Problem Details ดูรหัสทั้งหมดที่ รหัสข้อผิดพลาด