Create webhook

POST https://{{api.box.com}}/2.0/webhooks

Creates a webhook.

https://developer.box.com/reference/post-webhooks

Request Body

{"target"=>{"id"=>"1231232", "type"=>"file"}, "address"=>"https://example.com/webhooks", "triggers"=>["FILE.UPLOADED"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{"id":"11446498","type":"webhook","target":{"id":"1231232","type":"file"},"created_by":{"id":"11446498","type":"user","name":"Aaron Levie","login":"ceo@example.com"},"created_at":"2012-12-12T10:53:43-08:00","address":"https://example.com/webhooks","triggers":["FILE.UPLOADED"]}