Skip to main content
PATCH
/
admin
/
webhooks
/
{id}
Webhook 수정
curl --request PATCH \
  --url https://api.headlesscommerce.io/v1/admin/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "is_active": true
}
'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "is_active": true,
  "secret": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx

Path Parameters

id
string
required

리소스 ID

Body

application/json
url
string<uri>
events
string[]
is_active
boolean

Response

200 - application/json

Success

id
string
url
string
events
string[]
is_active
boolean
secret
string

생성 시에만 반환

created_at
string<date-time>