Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 520 Bytes

post.md

File metadata and controls

36 lines (21 loc) · 520 Bytes

Registers hook for device

Registers or replaces hook url for device. A POST request is then sent to the hook url, whenever a recommendation by the energy manager is received.

  • URL

    /api/devices/:id/hook

  • Method:

    POST

  • URL Params

    Required:

    id=[integer]

  • Data Params

    {hookURL: string}
    
  • Success Response:

    • Code: 200
  • Error Response:

    • Code: 404 NOT FOUND
  • Notes:

    Only one hook url can be registered.