Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 580 Bytes

File metadata and controls

31 lines (25 loc) · 580 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const timeCard = {
  clockInEvent: {
    dateTime: '2025-01-07T21:00:00.000Z',
    isAtApprovedLocation: true,
    notes: {
      content: 'Started late due to traffic in CA 237',
      contentType: 'text'
    }
  },
  clockOutEvent: {
    dateTime: '2025-01-07T21:30:00.000Z',
    isAtApprovedLocation: true
  }
};

await client.api('/teams/871dbd5c-3a6a-4392-bfe1-042452793a50/schedule/timeCards')
	.post(timeCard);