PATCH /v1/spaces/:space_id/integrations/:integration_type/setup
HTTP Verb: PATCH
Available statuses: 200 OK, 404 Not Found, 422 Unprocessable Entity
Location: n/a
Formats: JSON
Set up the authorization for an integration
Note: this is currently working only for the Travis integration.
Params
To set up the authorization, a data body must be provided. Data can be provided in two formats: JSON and query string. To specify the JSON data type add the Content-type: application/json header to request headers, if you want to provide query string simply skip the Content-type header.
JSON
{"token":"my_token"}
Query string
token=my_token
Examples
Request JSON, using cURL utility:
curl -i -X PATCH -H "Authorization: Bearer _token" -d '{"token":"my_token"}' https://api.assembla.com/v1/spaces/_space_id/integrations/travis/setup.json
Response
HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Wed, 20 Jun 2012 12:13:01 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200