ProZ.com global directory of translation services
The translation workplace
Ideas

POST: /quickpolls/:id/responses

Submit a response to a quick poll.

Required authorization scope

When using OAuth2 access tokens, the quickpoll scope is required to submit a quick poll response. See scopes in the authentication guide for information about how to request this scope of authorization.

Parameters

Pass the JSON representation of the quick poll response as the POST data.

Any read-only attributes you set will be ignored (i.e. only the option_value property is needed).

Parameters

  • id: The quick poll ID.

Example request

Here's an example of submitting a request using curl:

curl -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer OAUTH2_ACCESS_TOKEN' \
    -d '{
            "option_value": 3
        }' \
    https://api.proz.com/v2/quickpoll/12345/responses

Response

On success, a 201 Created HTTP status code will be returned, along with the created quick poll response.

On error, a standard error response will be returned.