Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Service Hooks API

« API Overview

The Service Hooks resources allow you create, view and remove the service hooks associated with an AppHarbor application.

Contents

List Service Hooks

Returns a list of service hooks for the specified application.

Request

GET /applications/:slug/servicehooks

Response

The item properties are the same as the detail with the addition of the URL for the item detail.

Status: 200 OK

[{
    "value" : "http://www.example.org",
    "url" : "https://appharbor.com/applications/:slug/servicehooks/:id"
}]

Get Service Hook Detail

Retrieve the details for an existing service hook.

Request

GET /applications/:slug/servicehooks/:id

Response

Status: 200 OK

{
    "value" : "http://www.example.org"
}

Create Service Hook

Create a new service hook to receive requests for the specified application.

Request

POST /applications/:slug/servicehooks

{
    "url" : "http://www.example.org"
}

Request Parameters

url Required The URL to use for the service hook requests.

Response

Status: 201 Created
Location: https://appharbor.com/applications/:slug/servicehooks/:id

Remove Service Hook

Remove the service hook from the specified application.

Request

DELETE /applications/:slug/servicehooks/:id

Response

Status: 204 No Content

Back to overview