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"
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/working-time"
payload = {
"metadata": {
"source": "SAP"
},
"id": "SAP-WT-12345",
"user_id": "SAP-USER-67890",
"is_active": True,
"status": "active"
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/working-time',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'SAP'
},
id: 'SAP-WT-12345',
user_id: 'SAP-USER-67890',
is_active: true,
status: 'active'
})
}
);
const data = await response.json();
console.log(data);
{
"id": 50001,
"user_id": 8546,
"company_id": 1234,
"is_active": true,
"status": "active",
"created_at": "2025-01-10T14:30:00Z"
}
{
"error": "UserNotFoundError",
"message": "User with external ID 'SAP-USER-67890' not found",
"code": "ZC004"
}
Working Time
Create Working Time
Creates a new working time record in your COR instance
POST
/
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"
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/working-time"
payload = {
"metadata": {
"source": "SAP"
},
"id": "SAP-WT-12345",
"user_id": "SAP-USER-67890",
"is_active": True,
"status": "active"
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/working-time',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'SAP'
},
id: 'SAP-WT-12345',
user_id: 'SAP-USER-67890',
is_active: true,
status: 'active'
})
}
);
const data = await response.json();
console.log(data);
{
"id": 50001,
"user_id": 8546,
"company_id": 1234,
"is_active": true,
"status": "active",
"created_at": "2025-01-10T14:30:00Z"
}
{
"error": "UserNotFoundError",
"message": "User with external ID 'SAP-USER-67890' not found",
"code": "ZC004"
}
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
string
required
External working time record ID from your source system
string
required
External user ID. The user must have been previously created through the integrations API.
boolean
Whether the record is active (default: true)
string
Source system identifier
string
Destination system identifier
string
Working time status
The
companyId is automatically set from the authenticated user’s company context.Known Errors
ValidationError— Missing required fieldsUserNotFoundError— The specified user does not exist in the integration mappingsDuplicateExternalIdError— 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"
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/working-time"
payload = {
"metadata": {
"source": "SAP"
},
"id": "SAP-WT-12345",
"user_id": "SAP-USER-67890",
"is_active": True,
"status": "active"
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/working-time',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'SAP'
},
id: 'SAP-WT-12345',
user_id: 'SAP-USER-67890',
is_active: true,
status: 'active'
})
}
);
const data = await response.json();
console.log(data);
{
"id": 50001,
"user_id": 8546,
"company_id": 1234,
"is_active": true,
"status": "active",
"created_at": "2025-01-10T14:30:00Z"
}
{
"error": "UserNotFoundError",
"message": "User with external ID 'SAP-USER-67890' not found",
"code": "ZC004"
}
Was this page helpful?

