Skip to main content
POST
/
employees
/
{employee}
/
project_sessions
Projektsitzung erstellen
curl --request POST \
  --url https://{tenant}.stamp.eu/rest/employees/{employee}/project_sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z",
  "note": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "start_time": "2023-11-07T05:31:56Z",
    "project": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "code": "<string>",
      "name": "<string>",
      "active": true,
      "description": "<string>",
      "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"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "end_time": "2023-11-07T05:31:56Z",
    "duration": "<string>",
    "note": "<string>",
    "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
project_id
string<uuid>
required
start_time
string<date-time>
required
end_time
string<date-time>
note
string
Maximum string length: 1000

Response

ProjectSessionResource

data
object
required