| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- operationId: homeRotateKey
- summary: Rotate API Key
- security:
- - UserAuth: []
- description: Rotate the API key
- tags: [Home]
- parameters:
- - name: home_id
- in: path
- description: ID of home
- required: true
- schema:
- type: string
- format: uuid
- example: c27f3ac5-c6e7-4cda-a383-26115e6f5620
- requestBody:
- content:
- application/json:
- schema:
- type: object
- required:
- - email
- - password
- properties:
- email:
- type: string
- format: email
- description: Email of user that is admin for home
- example: john.smith@mail.com
- password:
- type: string
- description: Current user password
- example: password123
- responses:
- "200":
- description: "API key changed (always returns '{success: true}')"
- content:
- application/json:
- schema:
- type: object
- properties:
- success:
- type: boolean
- "400":
- $ref: "#/components/responses/400"
- "401":
- $ref: "#/components/responses/401"
- "403":
- $ref: "#/components/responses/403"
- "404":
- $ref: "#/components/responses/404"
- "500":
- $ref: "#/components/responses/500"
|