This service is used to control the limit on the number of runsheet a driver can accept
Create limit record for a driver
runsheet_id | string <uuid> |
task_ids | Array of strings <uuid> |
{- "runsheet_id": "11efe5a3-2e79-4946-8030-f9f750a22a76",
- "task_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
{- "message": "Successfully create limit record"
}
Get a limit record by runsheet id for a driver
runsheet_id | string <uuid> |
{- "limit": {
- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "driver_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "runsheet_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "task_ids": [
- "3fa85f64-5717-4562-b3fc-2c963f66afa6"
], - "version_rev": "0-abcdefgh",
- "version_seq": 0
}
}
This API will remove the task id from limit record after the task is finished (completed, failed, cancelled)
task_id | string <uuid> |
runsheet_id | string <uuid> |
version_rev required | string version_rev of the limit record |
{- "version_rev": "0-abcdefgh"
}
{- "message": "Successfully remove task id from accept limit"
}
Get driver limits list. Only SysAdmin can access
driver_id | string <uuid> |
{- "limits": [
- {
- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "driver_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "runsheet_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "task_ids": [
- "3fa85f64-5717-4562-b3fc-2c963f66afa6"
], - "version_rev": "0-abcdefgh",
- "version_seq": 0
}
]
}