Artboard
Webhooks

Update Webhook

PATCH
/otto/api/webhooks/{id}

Path Parameters

id*integer

Webhook ID (retrieve from GET /webhooks)

Formatint64
Range0 < value <= 9007199254740991

Request Body

application/json

PATCH /otto/api/webhooks/:id Request body

label*string

Label for the webhook

Response Body

application/json

application/json

curl -X PATCH "https://your.server.net/otto/api/webhooks/9007199254740991" \  -H "Content-Type: application/json" \  -d '{    "label": "string"  }'
{
  "response": {
    "id": 9007199254740991,
    "url": "string",
    "database": "string",
    "label": "string",
    "created_at": "string",
    "updated_at": "string",
    "last_used": "string",
    "last_result": "string",
    "last_result_is_error": 1,
    "active": 1,
    "number_of_times_used": 9007199254740991,
    "bytes_received": 1.7976931348623157e+308
  },
  "messages": [
    {
      "code": 0.1,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}