Skip to main content
POST
https://integrations.projectcor.com
/
v2
/
integrations
/
working-time
curl --location 'https://integrations.projectcor.com/v2/integrations/working-time' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SAP"
  },
  "id": "SAP-WT-12345",
  "user_id": "SAP-USER-67890",
  "is_active": true,
  "status": "active"
}'
{
  "id": 50001,
  "user_id": 8546,
  "company_id": 1234,
  "is_active": true,
  "status": "active",
  "created_at": "2025-01-10T14:30:00Z"
}
Creates a new working time record in your COR instance through the integrations service.
Working time records cannot be updated once created. If you need to modify a record, you must delete it and create a new one.

Request Body Requirements

metadata
object
required
id
string
required
External working time record ID from your source system
user_id
string
required
External user ID. The user must have been previously created through the integrations API.
is_active
boolean
Whether the record is active (default: true)
source
string
Source system identifier
destination
string
Destination system identifier
status
string
Working time status
The companyId is automatically set from the authenticated user’s company context.

Known Errors

  • ValidationError — Missing required fields
  • UserNotFoundError — The specified user does not exist in the integration mappings
  • DuplicateExternalIdError — A working time record with this external ID already exists
curl --location 'https://integrations.projectcor.com/v2/integrations/working-time' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SAP"
  },
  "id": "SAP-WT-12345",
  "user_id": "SAP-USER-67890",
  "is_active": true,
  "status": "active"
}'
{
  "id": 50001,
  "user_id": 8546,
  "company_id": 1234,
  "is_active": true,
  "status": "active",
  "created_at": "2025-01-10T14:30:00Z"
}