Update a task
PUT/platform/solutions/api/v1/orgs/{orgId}/tasks/{taskId}
Update an existing device task by its unique identifier.
Usage
PUT orgs/{orgId}/tasks/{taskId}
Parameters
OrgId(string, required): the ID of the organization the task belongs to.taskId(Guid, required): the unique ID of the task to update.input(CreateUpdateDeviceTaskDto, required): the task definition including the following properties:Name(string, required, max 100): Task name.Cmd(string, optional): the command that will be executed.Payload(string, optional): variables in the payload.
Responses
200 OK: task updated successfully, returns the updatedDeviceTaskDto.404 Not Found: task not found.400 Bad Request: invalid input data.
Security
This API requires authentication.
Request
Responses
- 200
OK