provider Time Off POST /teammates/{teammate_id}/time_offs
@utdk/front /teammates/{teammate_id}/time_offs
Create time off
Create a time off for a teammate. Required scope: `time_off:write`
teammate_id path required
The teammate ID. Alternatively, you can supply an email as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1).
string

Try it

Authentication
Configure credentials for Core API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

createTimeOff
POST/teammates/{teammate_id}/time_offs
Create a time off for a teammate. Required scope: `time_off:write`

Parameters

required

The teammate ID. Alternatively, you can supply an email as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1).

Input

required

Name of the time off

required

Timestamp when the time off starts (in seconds)

Timestamp when the time off ends (in seconds), or null if open-ended

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import front from '@utdk/front';

await front.createTimeOff({
  "teammate_id": "tea_abc123"
})