To fetch metadata of Votes object send a GET request to:

https://api.assembla.com/v1/meta/merge_request_version_votes.(json|xml)

example. request json with curl utility:

curl -H "authorization: bearer _token" https://api.assembla.com/v1/meta/merge_request_version_votes.json

example. request xml with curl utility:

curl -H "authorization: bearer _token" https://api.assembla.com/v1/meta/merge_request_version_votes.xml

table below is the list of fields contained in the response, this list will be properly formatted to json or xml as requested.

Fields

Param Data type Access Description
created_at datetime read Time when merge request version vote was created
id integer read Merge request version identifier
merge_request_id integer read Merge request ID
merge_request_version_id integer read Merge request version ID
updated_at datetime read Date of merge request version last update
user_id string read ID of the user that created the merge request version
vote integer read Vote. The values:
  • -1
  • 0
  • 1

Validations

Field Validator Description
user_id presence validator User ID should be present. Set automatically on voting.
merge_request_id presence validator Merge request ID should be present. Set automatically on voting.
merge_request_version_id presence validator Merge request version ID should be present. Set automatically on voting.
merge_request_version_id uniqueness validator Only one vote per user is available on a version.