Skip to main content
PUT
/
employees
/
{employee}
Mitarbeitende aktualisieren
curl --request PUT \
  --url https://{tenant}.stamp.eu/rest/employees/{employee} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "email": "jsmith@example.com",
  "password": "<string>",
  "name": "<string>",
  "surname": "<string>",
  "gender": "male",
  "birthday": "2023-12-25",
  "working_hours": "<string>",
  "vacation_days": 1,
  "employed_start": "2023-12-25",
  "employed_end": "2023-12-25",
  "unit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "department_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cost_center_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "position": "<string>",
  "active": true,
  "uses_projects": true,
  "reference_no": "<string>",
  "salary_type_work": "<string>",
  "salary_type_overtime": "<string>",
  "include_in_export": true
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "surname": "<string>",
    "code": "<string>",
    "gender": "male",
    "birthday": "2023-12-25",
    "working_hours": "08:00:00.000",
    "vacation_days": 123,
    "employed_start": "2023-12-25",
    "employed_end": "2023-12-25",
    "unit": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "permissions": {
        "employees": true,
        "units": true,
        "departments": true,
        "events": true,
        "leave": true,
        "schedules": true,
        "holidays": true,
        "cost_centers": true,
        "short_work": true
      },
      "children": "<array>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "department": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "cost_center": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "code": "<string>",
      "name": "<string>",
      "description": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "position": "<string>",
    "role": "<string>",
    "role_display_name": "<string>",
    "active": true,
    "uses_projects": true,
    "reference_no": "<string>",
    "salary_type_work": "<string>",
    "salary_type_overtime": "<string>",
    "include_in_export": true,
    "latest_overtime_account": {
      "year_month": "<string>",
      "balance_ms": 123,
      "earned_ms": 123
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

employee
string<uuid>
required

Mitarbeiter-ID (UUID)

Body

application/json
code
string
Maximum string length: 50
email
string<email>
Maximum string length: 255
password
string
Minimum string length: 4
name
string
Maximum string length: 255
surname
string
Maximum string length: 255
gender
enum<string>
Available options:
male,
female,
diverse
birthday
string<date>
working_hours
string
Pattern: ^\d{2}:\d{2}:\d{2}\.\d{3}$
vacation_days
number
Required range: x >= 0
employed_start
string<date>
employed_end
string<date>
unit_id
string<uuid>
department_id
string<uuid>
cost_center_id
string<uuid>
position
string
Maximum string length: 255
active
boolean
uses_projects
boolean
reference_no
string
Maximum string length: 50
salary_type_work
string
Maximum string length: 100
salary_type_overtime
string
Maximum string length: 100
include_in_export
boolean

Response

EmployeeResource

data
object
required