HTTP Verb: PUT

Available statuses: 200 OK, 404 Not Found, 422 Unprocessable Entity

Object: MergeRequest

Location: n/a

Formats: XML, JSON

Apply and close a merge request.

Params

No params available

Examples

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_id/merge_and_close.json

Response

HTTP/1.1 200 OK
Server: nginx/0.7.68
Date: Tue, 24 Jul 2012 13:03:50 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

{}

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_id/merge_and_close.xml

Response

HTTP/1.1 200 OK
Server: nginx/0.7.68
Date: Tue, 24 Jul 2012 13:21:38 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

Description for each field: merge request object fields reference