View as Markdown
actiTIME icon

actiTIME ACTION

Modify Leave Time

Changes the existing leave time record with a given value in actiTIME. See the documentation.
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's actiTIME account once, then configure and run Modify Leave Time from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "actitime-modify-leave-time",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    actitime: { authProvisionId: "apn_xxxxxxx" },
    userId: "User ID",
    date: "Date",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Modify Leave Time inputs
Property Type Description
userId User ID string
The ID of the user whose working time is updated.
Required Dynamic
date Date string
The date of the leave record. Date in following format: YYYY-MM-DD OR today.
Required
leaveTypeId Leave Type ID string
The ID of the leave type.
Required Dynamic
leaveTime Leave Time integer
The leave time in minutes.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
actitime-modify-leave-time
Version
0.0.2
App
actiTIME
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes