Enable/disable schedule
POST/devices/:deviceId/command/schedule
Instructs the device to set the schedule on/off, get, or delete it (as per action
key).
Required scope(s): [devices:command
]
Request
Path Parameters
The target sensor.
- application/json
Body
required
Possible values: [on
, off
, get
, delete
]
Set the schedule 'on' or 'off', 'delete' the schedule or 'get' its current details.
schedule objectrequired
Object representing a schedule of commands based on specific times. Keys must be in format "HH:MM" (as per RFC3339) and denote the time that the associated command (value) should be executed.
property name* CommandDetails
Possible values: [go
, stop
, pick_good_poses
]
The command to be executed.
The target quantity of poses to identify. Required for 'pick_good_poses' command.
Identifier for the job associated with the command.
Duration to execute the command for in seconds.
Default value: true
If true, then past poses will be reconsidered in the upcoming pick poses search. To disable, set to false. Only supported for 'pick_good_poses' command.
Responses
- 200
- 404
- 500
Your request was successful.
- application/json
- Schema
- Example (from schema)
Schema
Unique identifier for the client making the request.
res objectrequired
Container for additional response details.
Acknowledgment status; will always have a value of 1, indicating successful receipt of the request by the API and/or device.
Response status from sensor, represented as HTTP status code.
Status message from sensor.
Unique ID (ULID) for the response message.
Session ID (ULID) associated with the client's request, providing context and traceability.
{
"clientId": "jdppdzf4l0",
"res": {
"ack": 1,
"code": "200",
"message": "Request executed successfully",
"messageId": "01H7B0YXPAMMSKX401J1CXCQBP"
},
"sessionId": "01H7B0YVB9PQJ3086GNX5XVA94"
}
You are operating on a resource that does not exist. A message is returned explaining the issue.
- application/json
- Schema
- Example (from schema)
Schema
object
{}
An internal server error. Please contact Gardin Support for further assistance.
- application/json
- Schema
- Example (from schema)
Schema
object
{}