Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions api.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2962,6 +2962,29 @@ paths:
- SessionCookieHeader: []
- APIKeyHeader: []
- CognitoJwt: [ invotra/group_polls:read ]
put:
tags:
- 'group polls'
description: 'Update information about the group poll.'
responses:
'200':
description: 'The group poll was successfully updated.'
'400':
description: 'The supplied UUID was malformed.'
'403':
description: 'User is not authorized to update this group poll.'
'404':
description: 'The UUID does not correspond to an existing group poll.'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/group-poll-schema-update'
required: true
security:
- SessionCookieHeader: []
- APIKeyHeader: []
- CognitoJwt: [ invotra/group_polls:write ]
delete:
tags:
- 'group polls'
Expand Down Expand Up @@ -11614,13 +11637,24 @@ components:
- title
- group
- options
group-poll-schema-update:
type: object
properties:
closing_date_timestamp:
description: 'The closing date timestamp for the group poll (in seconds).'
type: integer
example: 1510941596
group-poll-schema-common:
type: object
properties:
title:
description: 'Title of the group poll.'
type: string
example: 'What is your favorite food?'
closing_date_timestamp:
description: 'The closing date timestamp for the group poll (in seconds).'
type: integer
example: 1510941596
list-schema:
allOf:
- $ref: '#/components/schemas/list-schema-common'
Expand Down