แก้ไข 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_idpathstringใช่
traceparentheaderstringไม่

Request body

application/merge-patch+json

ฟิลด์ชนิดจำเป็น
urlstring (uri)ไม่
descriptionstring | nullไม่
event_typesslip.checked | webhook.test[]ไม่
enabledbooleanไม่

Responses

200 application/json

ฟิลด์ชนิดจำเป็น
idstringใช่
urlstring (uri)ใช่
descriptionstring | nullใช่
event_typesslip.checked | webhook.test[]ใช่
enabledbooleanใช่
disabled_reasonMANUAL | GONE | FAILING | nullใช่
secret_hintstringใช่
previous_secret_expires_atstring (date-time) | nullไม่
created_atstring (date-time)ใช่
updated_atstring (date-time)ใช่

Error ที่อาจได้

400401403404422

error ในรูป Problem Details ดูรหัสทั้งหมดที่ รหัสข้อผิดพลาด