메인 콘텐츠로 건너뛰기
PUT
/
api
/
v2
/
orders
/
webhooks
/
{webhookId}
cURL
curl -X PUT https://morimori.app/api/v2/orders/webhooks/WEBHOOK_ID \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Webhook",
    "url": "https://example.com/webhook-v2"
  }'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "url": "<string>",
    "isActive": true,
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

인증

Authorization
string
header
필수

외부 클라이언트 접근을 위한 API 키

경로 매개변수

webhookId
integer
필수

웹훅 ID

본문

application/json
name
string

웹훅 이름

Maximum string length: 100
url
string<uri>

웹훅 URL

예시:

"https://example.com/webhook"

응답

수정 성공

data
object