Stampfactory
Dokumentation
Dienstplan-Vorlagen

Generierung vorschauen

Dry-run preview of what a rotation generation would produce, including a coverage comparison against shift requirements

POST
/roster_templates/{rosterTemplate}/preview
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Pfadparameter

rosterTemplate*string

The roster template ID

Formatuuid

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Response-Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/roster_templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/preview" \  -H "Content-Type: application/json" \  -d '{    "start_date": "2019-08-24T14:15:22Z"  }'
{  "data": [    {      "group": "string",      "employee_id": "string",      "date": "string",      "shift_id": "string",      "start_time": "string",      "end_time": "string"    }  ],  "coverage": [    {      "date": "string",      "shift_id": "string",      "work_area_id": "string",      "assigned": 0,      "open": 0,      "min_count": 0,      "optimal_count": "string",      "required_skills": "string",      "skill_gaps": [        {          "skill_id": "string",          "name": "string",          "min_level": "string",          "required_count": "string",          "required": "string",          "qualified": 0,          "missing": {}        }      ],      "status": "understaffed"    }  ]}