Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 664 Bytes

post.md

File metadata and controls

42 lines (27 loc) · 664 Bytes

Adds a new planning request

Adds a new planning request to a device.

  • URL

    /api/devices/:id/planningRequests

  • Method:

    POST

  • URL Params

    Required:

    id=[integer]

  • Data Params

        {
            planning: {
            EarliestStart: number,
            LatestEnd: number,
            MinRunningTime: number,
            MaxRunningTime: number
            }            
        }
    
  • Success Response:

    • Code: 200
  • Error Response:

    • Code: 404 NOT FOUND
  • Notes:

    Timestamps are in seconds, absolute or relative depending on what you set for the device.