Documentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
Run command for SensorHistories
This endpoint lets you run a command for one or more Sensor History records.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header.
Request Body
The key for the command to execute.
The list of record identifiers (Id field) for the Sensor History records to execute this command for.
If this command requires any parameters, the name and value for each of them.
Response
200
Example: The command was run correctly.
Example: 2021-04-15T12:19:07Z
Example: john@example.com
{
"Status": 200,
"Message": "The command was run correctly.",
"Value": {
"Id": 10605
},
"RedirectURL": null,
"UpdatedOn": "2021-04-15T12:19:07Z",
"UpdatedBy": "john@example.com",
"Errors": null,
"WasSuccessful": true
}
Example Request
curl -X POST \
"https://spaces.nexudus.com/api/sys/sensorhistories/runcommand" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'