all repos

onasty @ 10fe031c01c55b5471677cc573d3a83335ce5b05

a one-time notes service

onasty/api/paths/note/note-slug-password.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
patch:
  tags: [Notes]
  summary: Change note's password
  security:
    - Bearer: []

  parameters:
    - name: slug
      in: path
      required: true
      schema:
        type: string

  requestBody:
    required: true
    content:
      application/json:
        schema:
          type: object
          properties:
            password:
              type: string
              example: newPassword

  responses:
    '200':
      description: Note updated
    '400':
      $ref: '../../components/responses/ErrorResponse.yml'
    '401':
      description: Unauthorized
    '404':
      $ref: '../../components/responses/NoteNotFound.yml'