Clinia
OperationsReviewassignments

Bulk assign reviews

POST
/operations/v1/review-assignments

Assign one or more reviews to a user. Existing assignments are overwritten.

headerX-Clinia-API-Key<token>
application/json
  1. body
operationIds*array<string>

List of operation IDs to assign. Existing assignments are overwritten.

Items1 <= items
reviewerId*string

ID of the user to assign to the reviews.

Response Body

A successful response. Check status for an overall summary and each result's status for per-operation outcome.

application/json
  1. response
status*v1AssignReviewStatus
Value in"SUCCESS""FAILURE"
results*array<>
Example Request
curl -X POST 'https://api..clinia.cloud/operations/v1/review-assignments' \  -H 'Content-Type: application/json' \  -d '{  "operationIds": [    "string"  ],  "reviewerId": "string"}'
Example Response
{  "status": "SUCCESS",  "results": [    {      "operationId": "string",      "status": "SUCCESS",      "assignment": {        "operationId": "string",        "reviewerId": "string",        "assignerId": "string",        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      },      "error": {        "message": "string",        "type": "ALREADY_EXISTS",        "details": [          {}        ],        "additionalContext": {},        "code": 400,        "applicationErrorCode": "OPERATIONS_INVALID_REQUEST_BODY"      }    }  ]}