Timesheet icon

Timesheet

Interact with timesheet.io time tracking API

Actions153

Contract → Create

AI-generated

Summary

Create a contract for a user in an organization, with optional terms such as working hours, overtime, salary, and vacation allowance.

Inputs

  • authentication (required) — Choose API Key, OAuth2, or OAuth 2.1 (PKCE) authentication.
  • organizationId (required) — Select the organization the contract belongs to or enter its ID.
  • name (required) — Contract name.
  • userId (required) — ID of the user the contract applies to.
  • additionalFields — Optionally set daily and weekly hours, work days, overtime tracking, salary amount, currency and type, annual vacation days, and valid-from and valid-to dates.
  • teamId — Team selector is declared with the operation properties; its description says to provide a team when teams are activated in the profile, otherwise leave it empty.

Output shape

a single contract record

The operation creates the contract through the Timesheet API and returns the created contract. The provided source pack shows the handler but omits its implementation body, so it does not establish whether optional fields are omitted or sent with their displayed defaults.

Links

Discussion