onasty/api/paths/note/note-slug-expires.yml(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
patch:
tags: [Notes]
summary: Change note's expiration time
security:
- Bearer: []
parameters:
- name: slug
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
expires_at:
type: string
format: date-time
keep_before_expiration:
type: boolean
responses:
'200':
description: Note updated
'400':
$ref: '../../components/responses/ErrorResponse.yml'
'401':
description: Unauthorized
'404':
$ref: '../../components/responses/NoteNotFound.yml'
|