跳至主要内容

Update only actions of a batch

PATCH 

/platform/solutions/api/v1/orgs/{orgId}/batches/{batchId}

Update the actions of an existing batch without changing its other properties.

Usage
PATCH /orgs/{orgId}/batches/{batchId}

Parameters

  • orgId (string, required): the ID of the organization.
  • batchId (Guid, required): the ID of the batch.

Request body

  • input (UpdateBatchActionsDto, required): the new actions for the batch.
    • Actions (List<CreateBatchActionDto>, required): the list of actions to set.
      • DeviceId (string, required): the ID of the device.
      • TaskId (Guid, required): the ID of the task.
      • Parameters (string, optional): the parameters for the task, default is an empty string.

Responses

  • 201 Created: returns the updated BatchDto after successful actions update.
  • 404 Not Found: batch not found.
  • 400 Bad Request: invalid request format or validation failure.

Security
This API requires authentication.

Request

Responses

OK