Stampfactory
Dokumentation
Sonstiges

Betriebsstätte zuordnen

POST
/employees/{employee}/establishment_history
AuthentifizierungBearer <token>

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

Ort: header

Pfadparameter

employee*string

The employee ID

Formatuuid

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Anlage (bzw. Ersetzen bei gleichem Gültigkeitsbeginn) einer Betriebsstätten-Zuordnung. Archivierte Betriebsstätten sind für neue Zuordnungen nicht wählbar.

Response-Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/employees/497f6eca-6276-4993-bfeb-53cbbbba6f08/establishment_history" \  -H "Content-Type: application/json" \  -d '{    "valid_after": "2019-08-24T14:15:22Z",    "establishment_id": "79c2ed6a-4f04-4a25-97dc-40ebc08eda04"  }'
{  "data": {    "id": "string",    "employee_id": "string",    "establishment_id": "string",    "is_main_bbnr": true,    "valid_after": "string",    "establishment_name": "string",    "establishment_bbnr": "string",    "establishment_city": "string",    "establishment_archived": true,    "source": "string",    "location": {      "id": "string",      "name": "string"    },    "created_at": "string"  }}