Request Detail:
- Base URL: {host}/ASMSAPI/
- URI: api/v9/article/{id}/vote
- Type: POST
-
Required headings:
- Content-Type: application/json
- X-Authorization: Bearer {token}
URL Description
- {host}: It represents the domain of the environment in which the API is located.
- ASMSAPI/: Fixed API prefix.
- URI: Specific endpoint for the request.
⚐ EXAMPLE URL:
https://{host}/ASMSAPI/api/v9/article/{id}/vote
Parameters:
Name | Guy | Obligatory | Description |
---|---|---|---|
Id | Numerical | Yes | Item identifier. |
StateId | Numerical | Yes | State identifier. |
Description | String | Yes | Observations of the vote. |
Vote | Numerical | Yes | Process vote: 1 = Approved 0 = Rejected |
Examples of uri:
api/v9/article/1743/vote
Body of the petition:
{
"stateId": 174,
"description": "Razón aprobación",
"vote": 1
}
Answer:
The service will return a Json with the following structure:
{
"ReasonId": 1290,
"Result": true,
"StatusId": 1869
}
Error messages:
Code | HTTP status | Error Message |
---|---|---|
500 | InternalServerError | FailureAddRelation |