mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Update content/en/api/rest/polls.md
This commit is contained in:
parent
1a205e1142
commit
0d86782b09
31
content/en/api/rest/polls.md
Normal file
31
content/en/api/rest/polls.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
title: Polls
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: rest-api
|
||||||
|
weight: 10
|
||||||
|
---
|
||||||
|
|
||||||
|
## GET /api/v1/polls/:id
|
||||||
|
|
||||||
|
Returns [Poll]({{< relref "entities.md#poll" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="No" user="No" scope="read read:statuses" version="2.8.0" >}}
|
||||||
|
|
||||||
|
## POST /api/v1/polls/:id/votes
|
||||||
|
|
||||||
|
Vote on a poll.
|
||||||
|
|
||||||
|
Returns [Poll]({{< relref "entities.md#poll" >}})
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|Name|Description|Required|
|
||||||
|
|----|-----------|:------:|
|
||||||
|
| `choices` | Array of choice indices | Required |
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write write:statuses" version="2.8.0" >}}
|
Loading…
x
Reference in New Issue
Block a user