Absences
Create a validated absence π
Creates a validated absence for a collaborator in a company and returns the new absence ID.
Required scopes: time:write
post/companies/{companyId}/absences
Request
- Base URLhttps://partner-api.payfit.com
- AuthOAuth 2Authorization codehttps://oauth.payfit.com/authorizeToken URLhttps://oauth.payfit.com/tokenScopestime:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
companyIdstring required
The id of the company
Request body
Example request
{
"contractId": "5b59e7b282ddef55f860d322",
"startDate": {
"date": "2026-07-01"
},
"endDate": {
"date": "2026-07-02"
}
}Response
The absence was created.
Example response
{
"id": "123456789"
}Changes
No recorded changes to this operation across all 2 revisions of this API.