View as Markdown
Ascora icon

Ascora ACTION

Create Job

Create a job in the Ascora system. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Ascora account once, then configure and run Create Job 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: "ascora-create-job",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ascora: { authProvisionId: "apn_xxxxxxx" },
    siteCustomer: "Site Customer",
    jobName: "Job Name",
  },
})

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.

Create Job inputs
Property Type Description
siteCustomer Site Customer string
The site customer of the job
Required Dynamic
jobName Job Name string
The name of the job
Optional
jobDescription Job Description string
The description of the job
Optional
workUndertaken Work Undertaken string
The work undertaken for the job
Optional
pricingMethod Pricing Method string
The pricing method for the job. Example: FIXED-PRICE
Optional
totalIncTax Total Inc Tax string
The total including tax for the job
Optional
totalExTax Total Ex Tax string
The total excluding tax for the job
Optional
addressLine1 Address Line 1 string
The first line of the address of the job
Optional
addressLine2 Address Line 2 string
The second line of the address of the job
Optional
suburb Suburb string
The suburb of the address of the job
Optional
postcode Postcode string
The postcode of the address of the job
Optional
country Country string
The country of the address of the job
Optional
billingCustomer Billing Customer string
The billing customer of the job
Optional Dynamic
completedDate Completed Date string
The completed date of the job. Example: 2021-01-12T20:55:03.837
Optional

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
ascora-create-job
Version
0.0.1
App
Ascora
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes