Skip to main content
GET
/
v2
/
fill
/
jobs
/
{id}
/
solution
Solution
curl --request GET \
  --url https://api.solvice.io/v2/fill/jobs/{id}/solution \
  --header 'Authorization: <api-key>'
{
  "id": "<string>",
  "status": "SOLVED",
  "score": {
    "hardScore": 123,
    "mediumScore": 123,
    "softScore": 123,
    "feasible": true
  },
  "assignments": [
    {
      "shift": "<string>",
      "from": "2023-11-07T05:31:56Z",
      "to": "2023-11-07T05:31:56Z",
      "skills": [
        "<string>"
      ],
      "employee": "<string>",
      "travelTimeInSeconds": 123
    }
  ],
  "unassigned": [
    "<string>"
  ],
  "suggestions": [
    {
      "shift": "<string>",
      "from": "2023-11-07T05:31:56Z",
      "to": "2023-11-07T05:31:56Z",
      "skills": [
        "<string>"
      ],
      "employee": "<string>",
      "travelTimeInSeconds": 123
    }
  ],
  "violations": [
    {
      "name": "<string>",
      "value": 123,
      "level": "[HARD, MEDIUM, SOFT]"
    }
  ]
}

Authorizations

Authorization
string
header
required

Api Key based authentication (apikey)

Path Parameters

id
string
required

Response

200 - application/json

OK

Fill response from solve

id
string | null

Id of the solve job

Example:

"0000-00000-00000-0000"

status
enum<string> | null

Status of the solve job.

Available options:
ERROR,
QUEUED,
SOLVING,
SOLVED
Example:

"SOLVED"

score
object

The score of a solution shows how good this solution is w.r.t all the constraints. All solvers try to maximize the score.

assignments
object[] | null

Actual solution: assignments per shift

unassigned
string[] | null

Unassigned shifts

Example:

"[shift-1]"

suggestions
object[] | null

List of suggested shift assignments returned by suggest api call

violations
object[] | null