import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const timeTrackingActivity = await conductor.qbd.timeTrackingActivities.create({
duration: 'PT1H30M',
entityId: '80000001-1234567890',
transactionDate: '2021-10-01',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(timeTrackingActivity.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_time_tracking_activity",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"transactionDate": "2021-10-01",
"entity": {
"id": "80000001-1234567890",
"fullName": "Acme Corporation"
},
"customer": {
"id": "80000001-1234567890",
"fullName": "Acme Corporation"
},
"serviceItem": {
"id": "80000001-1234567890",
"fullName": "Legal Consulting"
},
"duration": "PT1H30M",
"class": {
"id": "80000001-1234567890",
"fullName": "Project Management"
},
"payrollWageItem": {
"id": "80000001-1234567890",
"fullName": "Regular Pay"
},
"note": "Project planning meeting with client.",
"billingStatus": "billable",
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"isBilled": false
}
Creates a new time tracking activity.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const timeTrackingActivity = await conductor.qbd.timeTrackingActivities.create({
duration: 'PT1H30M',
entityId: '80000001-1234567890',
transactionDate: '2021-10-01',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(timeTrackingActivity.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_time_tracking_activity",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"transactionDate": "2021-10-01",
"entity": {
"id": "80000001-1234567890",
"fullName": "Acme Corporation"
},
"customer": {
"id": "80000001-1234567890",
"fullName": "Acme Corporation"
},
"serviceItem": {
"id": "80000001-1234567890",
"fullName": "Legal Consulting"
},
"duration": "PT1H30M",
"class": {
"id": "80000001-1234567890",
"fullName": "Project Management"
},
"payrollWageItem": {
"id": "80000001-1234567890",
"fullName": "Regular Pay"
},
"note": "Project planning meeting with client.",
"billingStatus": "billable",
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"isBilled": false
}
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
"end_usr_1234567abcdefg"
Returns the newly created time tracking activity.
The response is of type object
.