HTTP Verb: DELETE

Available statuses: 200 OK

Object: MergeRequestVote

Location: available

Formats: XML, JSON

Delete your vote from a merge request version and return the list of merge request version votes in requested format among with their location in a Location: \_location header.

Params

No params available

Examples

Request XML, using cURL utility:

curl -i -X DELETE -H "Authorization: Bearer _token" -H "Content-type: application/json" https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_merge_request_id/versions/_version/votes/delete.xml

Response

HTTP/1.1 201 Created
Server: nginx/0.8.55
Date: Thu, 19 Jul 2012 13:27:13 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 201
Location: https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_merge_request_id/versions/_version/votes
...

<?xml version="1.0" encoding="UTF-8"?>
<merge-request-votes type="array">
  <merge-request-vote>
    <merge-request-id type="integer">1</merge-request-id>
    <merge-request-version-id type="integer">2</merge-request-version-id>
    <updated-at type="datetime">2012-08-08T13:51:12Z</updated-at>
    <id type="integer">4</id>
    <created-at type="datetime">2012-08-08T13:51:12Z</created-at>
    <vote type="integer">1</vote>
    <user-id>aeF1CInHCr4ybVab_q0pIh</user-id>
  </merge-request-vote>
</merge-request-votes>

Request JSON, using cURL utility:

curl -i -X DELETE -H "Authorization: Bearer _token" -H "Content-type: application/json" https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_merge_request_id/versions/_version/votes/delete.json

Response

HTTP/1.1 201 Created
Server: nginx/0.8.55
Date: Thu, 19 Jul 2012 13:38:12 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 201
Location: https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_merge_request_id/versions/_version/votes
...

[
  {
    "merge_request_id":1,
    "merge_request_version_id":2,
    "updated_at":"2012-08-08T13:51:12Z",
    "id":4,
    "created_at":"2012-08-08T13:51:12Z",
    "vote":1,
    "user_id":"aeF1CInHCr4ybVab_q0pIh"
  },
  ...
]

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

Note: pay attention to Location header, this is the URL where votes are located.

Description for each field: Merge Request Vote object fields reference