delete.yaml 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. operationId: deviceDelete
  2. summary: Delete
  3. security:
  4. - UserAuth: []
  5. description: Delete a device
  6. tags: [Device]
  7. parameters:
  8. - name: home_id
  9. in: path
  10. description: ID of home the device belongs to
  11. required: true
  12. schema:
  13. type: string
  14. format: uuid
  15. example: 019e18e4-be63-7edc-8a9c-f11dfc0abe29
  16. - name: device_id
  17. in: path
  18. description: ID of the device to delete
  19. required: true
  20. schema:
  21. type: string
  22. format: uuid
  23. example: 019e18e5-66f7-7e23-b18e-42a3489798c6
  24. responses:
  25. "200":
  26. description: "Device deleted (always returns '{success: true}')"
  27. content:
  28. application/json:
  29. schema:
  30. type: object
  31. properties:
  32. success:
  33. type: boolean
  34. "400":
  35. $ref: "#/components/responses/400"
  36. "401":
  37. $ref: "#/components/responses/401"
  38. "403":
  39. $ref: "#/components/responses/403"
  40. "404":
  41. $ref: "#/components/responses/404"
  42. "500":
  43. $ref: "#/components/responses/500"