# Code by Zapier + Coperniq Integrations: Connect with Zapier MCP
> zapier.com/apps/code/integrations/coperniq
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Code by Zapier and Coperniq in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · api_request`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "coperniq", owner: "me" });

const { data } = await zapier.runAction({
  app: "coperniq",
  actionType: "write",
  action: "api_request",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action coperniq write api_request \
  --inputs '{}'
```

## Code by Zapier

### Identity
Write custom Python or Javascript code in response to any data from any service! Transform, mutate, customize or even do custom HTTP in a native and familiar environment.

- App slug: code
- Operations published here: 4 (2 events, 2 functions)

### Capabilities

#### Events (2)

Events fire when something happens in Code by Zapier. Use them to start a run.

##### Run Python
Use Python to kick off a workflow.  This is an advanced action!  Uses the latest supported version of Python.

- Type: read · Key: `01929fad-d3c3-301b-6108-52ea63edb8ea`
- Requires: code
- Optional: zap_id, zap_step_id
- SDK: `runAction({ app: "code", actionType: "read", action: "01929fad-d3c3-301b-6108-52ea63edb8ea" })`
- CLI: `npx zapier-sdk run-action code read 01929fad-d3c3-301b-6108-52ea63edb8ea`

##### Run Javascript
Use Javascript to kick off a workflow.  This is an advanced action!  Uses the latest supported version of Node.

- Type: read · Key: `01929fad-d3a5-77c0-55e2-ddf8d28eb2ad`
- Requires: code
- Optional: zap_id, zap_step_id
- SDK: `runAction({ app: "code", actionType: "read", action: "01929fad-d3a5-77c0-55e2-ddf8d28eb2ad" })`
- CLI: `npx zapier-sdk run-action code read 01929fad-d3a5-77c0-55e2-ddf8d28eb2ad`

#### Functions (2)

Functions change something in Code by Zapier.

##### Run Javascript
Run Javascript code  This is an advanced action!  Uses the latest supported version of Node.

- Type: write · Key: `01929fad-d3dd-62c2-52ed-7868d5fcc691`
- Requires: code
- Optional: zap_id, zap_step_id, input
- SDK: `runAction({ app: "code", actionType: "write", action: "01929fad-d3dd-62c2-52ed-7868d5fcc691" })`
- CLI: `npx zapier-sdk run-action code write 01929fad-d3dd-62c2-52ed-7868d5fcc691`

##### Run Python
Run Python code  This is an advanced action!  Uses the latest supported version of Python.

- Type: write · Key: `01929fad-d3f6-c57c-1b40-ef8691be1f86`
- Requires: code
- Optional: zap_id, zap_step_id, input
- SDK: `runAction({ app: "code", actionType: "write", action: "01929fad-d3f6-c57c-1b40-ef8691be1f86" })`
- CLI: `npx zapier-sdk run-action code write 01929fad-d3f6-c57c-1b40-ef8691be1f86`

## Coperniq

### Identity
Coperniq is a project management and field operations platform for solar, HVAC, roofing and other trade contractors.

- App slug: coperniq
- Operations published here: 81 (26 events, 39 functions, 12 queries, 4 search-or-write actions)

### Authentication
Zapier connects to Coperniq via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection coperniq
```

### Capabilities

#### Events (26)

Events fire when something happens in Coperniq. Use them to start a run.

##### Completed Form
Triggers when a form is marked complete.

- Type: read · Key: `completed_form`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "completed_form" })`
- CLI: `npx zapier-sdk run-action coperniq read completed_form`

##### Completed Work Order
Triggers when a work order is marked complete.

- Type: read · Key: `completed_work_order`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "completed_work_order" })`
- CLI: `npx zapier-sdk run-action coperniq read completed_work_order`

##### New Account
Triggers when a new account is created.

- Type: read · Key: `new_account`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_account" })`
- CLI: `npx zapier-sdk run-action coperniq read new_account`

##### New Bill
Triggers when a new bill is created.

- Type: read · Key: `new_bill`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_bill" })`
- CLI: `npx zapier-sdk run-action coperniq read new_bill`

##### New Call
Triggers when a new call is created.

- Type: read · Key: `new_call`
- Requires: nothing
- Optional: outcome
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_call" })`
- CLI: `npx zapier-sdk run-action coperniq read new_call`

##### New Contact
Triggers when a new contact is created.

- Type: read · Key: `new_contact`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_contact" })`
- CLI: `npx zapier-sdk run-action coperniq read new_contact`

##### New Form
Triggers when a new form is created.

- Type: read · Key: `new_form`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_form" })`
- CLI: `npx zapier-sdk run-action coperniq read new_form`

##### New Invoice
Triggers when a new invoice is created.

- Type: read · Key: `new_invoice`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_invoice" })`
- CLI: `npx zapier-sdk run-action coperniq read new_invoice`

##### New Opportunity
Triggers when a new opportunity is created.

- Type: read · Key: `new_opportunity`
- Requires: nothing
- Optional: workflowId, status
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_opportunity" })`
- CLI: `npx zapier-sdk run-action coperniq read new_opportunity`

##### New or Updated Account
Triggers when an account is created, and again each time it is changed.

- Type: read · Key: `new_or_updated_account`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_or_updated_account" })`
- CLI: `npx zapier-sdk run-action coperniq read new_or_updated_account`

##### New or Updated Contact
Triggers when a contact is created, and again each time it is changed.

- Type: read · Key: `new_or_updated_contact`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_or_updated_contact" })`
- CLI: `npx zapier-sdk run-action coperniq read new_or_updated_contact`

##### New or Updated Form
Triggers when a form is created, and again each time it is changed.

- Type: read · Key: `new_or_updated_form`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_or_updated_form" })`
- CLI: `npx zapier-sdk run-action coperniq read new_or_updated_form`

##### New or Updated Invoice
Triggers when an invoice is created, and again each time it is changed.

- Type: read · Key: `new_or_updated_invoice`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_or_updated_invoice" })`
- CLI: `npx zapier-sdk run-action coperniq read new_or_updated_invoice`

##### New or Updated Opportunity
Triggers when an opportunity is created, and again each time it is changed.

- Type: read · Key: `new_or_updated_opportunity`
- Requires: nothing
- Optional: workflowId, status
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_or_updated_opportunity" })`
- CLI: `npx zapier-sdk run-action coperniq read new_or_updated_opportunity`

##### New or Updated Project
Triggers when a project is created, and again each time it is changed.

- Type: read · Key: `new_or_updated_project`
- Requires: nothing
- Optional: workflowId, status
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_or_updated_project" })`
- CLI: `npx zapier-sdk run-action coperniq read new_or_updated_project`

##### New or Updated Work Order
Triggers when a work order is created, and again each time it is changed.

- Type: read · Key: `new_or_updated_work_order`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_or_updated_work_order" })`
- CLI: `npx zapier-sdk run-action coperniq read new_or_updated_work_order`

##### New Project
Triggers when a new project is created.

- Type: read · Key: `new_project`
- Requires: nothing
- Optional: workflowId, status
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_project" })`
- CLI: `npx zapier-sdk run-action coperniq read new_project`

##### New Timesheet
Triggers when a new timesheet is created.

- Type: read · Key: `new_timesheet`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_timesheet" })`
- CLI: `npx zapier-sdk run-action coperniq read new_timesheet`

##### New Work Order
Triggers when a new work order is created.

- Type: read · Key: `new_work_order`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "new_work_order" })`
- CLI: `npx zapier-sdk run-action coperniq read new_work_order`

##### Updated Account
Triggers when an existing account is changed. Does not trigger when it is first created.

- Type: read · Key: `updated_account`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "updated_account" })`
- CLI: `npx zapier-sdk run-action coperniq read updated_account`

##### Updated Contact
Triggers when an existing contact is changed. Does not trigger when it is first created.

- Type: read · Key: `updated_contact`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "updated_contact" })`
- CLI: `npx zapier-sdk run-action coperniq read updated_contact`

##### Updated Form
Triggers when an existing form is changed. Does not trigger when it is first created.

- Type: read · Key: `updated_form`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "updated_form" })`
- CLI: `npx zapier-sdk run-action coperniq read updated_form`

##### Updated Invoice
Triggers when an existing invoice is changed. Does not trigger when it is first created.

- Type: read · Key: `updated_invoice`
- Requires: nothing
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "updated_invoice" })`
- CLI: `npx zapier-sdk run-action coperniq read updated_invoice`

##### Updated Opportunity
Triggers when an existing opportunity is changed. Does not trigger when it is first created.

- Type: read · Key: `updated_opportunity`
- Requires: nothing
- Optional: workflowId, status
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "updated_opportunity" })`
- CLI: `npx zapier-sdk run-action coperniq read updated_opportunity`

##### Updated Project
Triggers when an existing project is changed. Does not trigger when it is first created.

- Type: read · Key: `updated_project`
- Requires: nothing
- Optional: workflowId, status
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "updated_project" })`
- CLI: `npx zapier-sdk run-action coperniq read updated_project`

##### Updated Work Order
Triggers when an existing work order is changed. Does not trigger when it is first created.

- Type: read · Key: `updated_work_order`
- Requires: templateId
- SDK: `runAction({ app: "coperniq", actionType: "read", action: "updated_work_order" })`
- CLI: `npx zapier-sdk run-action coperniq read updated_work_order`

#### Functions (39)

Functions change something in Coperniq.

##### API Request (Advanced)
Makes a raw request to the Coperniq API using this connection. Use it for anything the other actions do not cover.

- Type: write · Key: `api_request`
- Requires: method, path
- Optional: query, body
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "api_request" })`
- CLI: `npx zapier-sdk run-action coperniq write api_request`

##### Create Account
Creates a new account.

- Type: write · Key: `create_account`
- Requires: title, address
- Optional: description, accountType, ownerId, primaryEmail, primaryPhone, contacts, parentAccountId, match_by, match_found_strategy, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_account" })`
- CLI: `npx zapier-sdk run-action coperniq write create_account`

##### Create Appointment
Creates an appointment on an opportunity.

- Type: write · Key: `create_appointment`
- Requires: opportunityId, title, assigneeId, dueDate
- Optional: description
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_appointment" })`
- CLI: `npx zapier-sdk run-action coperniq write create_appointment`

##### Create Asset
Creates a new asset (installed equipment) at a site.

- Type: write · Key: `create_asset`
- Requires: accountId, siteId, type, manufacturer, model, serialNumber
- Optional: status, size, labelIds, installDate, manufacturingDate, expectedLifetime, description
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_asset" })`
- CLI: `npx zapier-sdk run-action coperniq write create_asset`

##### Create Bill
Creates a bill on a project.

- Type: write · Key: `create_bill`
- Requires: recordId, calculationMethod, item_catalogItemId, item_quantity, item_unitCost, item_unitPrice
- Optional: item_description, percentage, dueDate, issueDate, status, description, internalMemo
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_bill" })`
- CLI: `npx zapier-sdk run-action coperniq write create_bill`

##### Record Bill Payment
Records a payment made against a bill.

- Type: write · Key: `create_bill_payment`
- Requires: billId, amount, paymentMethod, paymentDate
- Optional: notes, paymentReference
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_bill_payment" })`
- CLI: `npx zapier-sdk run-action coperniq write create_bill_payment`

##### Log Call
Logs a phone call on a project, opportunity or account.

- Type: write · Key: `create_call`
- Requires: parentType, fromNumber, toNumber, isInbound, startTime, endTime, reason, disposition
- Optional: outcome, note, recordingUrl, transcriptUrl, missedCount
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_call" })`
- CLI: `npx zapier-sdk run-action coperniq write create_call`

##### Create Catalog Item
Creates a product or service in your catalog.

- Type: write · Key: `create_catalog_item`
- Requires: name, type, category, cost, price
- Optional: tradeGroup, manufacturer, sku, code, description, preferredVendorId, unitId, coverage, wasteFactorMode, wasteFactorValue
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_catalog_item" })`
- CLI: `npx zapier-sdk run-action coperniq write create_catalog_item`

##### Create Contact
Creates a new contact, optionally linked to accounts and projects.

- Type: write · Key: `create_contact`
- Requires: name
- Optional: phones, emails, title, accountIds, projectIds
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action coperniq write create_contact`

##### Create Folder
Creates a folder in the files of a project or opportunity.

- Type: write · Key: `create_folder`
- Requires: parentType, name
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_folder" })`
- CLI: `npx zapier-sdk run-action coperniq write create_folder`

##### Create Form
Creates a form from a template on a project, opportunity or work order.

- Type: write · Key: `create_form`
- Requires: parentType, templateId
- Optional: phaseInstanceId, name
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_form" })`
- CLI: `npx zapier-sdk run-action coperniq write create_form`

##### Create Invoice
Creates an invoice on a project or account.

- Type: write · Key: `create_invoice`
- Requires: recordId, calculationMethod, item_catalogItemId, item_quantity, item_unitCost, item_unitPrice
- Optional: item_description, percentage, status, issueDate, dueDate, description, internalMemo
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_invoice" })`
- CLI: `npx zapier-sdk run-action coperniq write create_invoice`

##### Record Invoice Payment
Records a payment received against an invoice.

- Type: write · Key: `create_invoice_payment`
- Requires: invoiceId, amount, paymentMethod, paymentDate
- Optional: notes, paymentReference
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_invoice_payment" })`
- CLI: `npx zapier-sdk run-action coperniq write create_invoice_payment`

##### Add Note
Adds a note to a project, opportunity, account, work order or file.

- Type: write · Key: `create_note`
- Requires: parentType, body
- Optional: isPinned
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_note" })`
- CLI: `npx zapier-sdk run-action coperniq write create_note`

##### Create Opportunity
Creates a new opportunity.

- Type: write · Key: `create_opportunity`
- Requires: title, address, trades
- Optional: description, accountId, workflowId, phaseId, ownerId, salesRepId, projectManagerId, value, size, confidence, status, primaryEmail, primaryPhone, contacts, match_by, match_found_strategy, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_opportunity" })`
- CLI: `npx zapier-sdk run-action coperniq write create_opportunity`

##### Create Project
Creates a new project.

- Type: write · Key: `create_project`
- Requires: title, address
- Optional: description, trades, accountId, workflowId, value, size, status, primaryEmail, primaryPhone, contacts, match_by, match_found_strategy, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_project" })`
- CLI: `npx zapier-sdk run-action coperniq write create_project`

##### Create Reminder
Creates a reminder on a project, opportunity or account.

- Type: write · Key: `create_reminder`
- Requires: parentType, title, assigneeId
- Optional: description, dueDate, isCompleted, type
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_reminder" })`
- CLI: `npx zapier-sdk run-action coperniq write create_reminder`

##### Create Site
Creates a new site (service location) on an account.

- Type: write · Key: `create_site`
- Requires: accountId
- Optional: fullAddress, geoLocation, title, street, city, state, zipcode
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_site" })`
- CLI: `npx zapier-sdk run-action coperniq write create_site`

##### Create Timesheet
Creates a timesheet entry for a user.

- Type: write · Key: `create_timesheet`
- Requires: targetUserId, type, startDate, endDate
- Optional: projectId, accountId, opportunityId, workOrderId, distance, laborHourlyRate, note
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_timesheet" })`
- CLI: `npx zapier-sdk run-action coperniq write create_timesheet`

##### Create Vendor
Creates a new vendor.

- Type: write · Key: `create_vendor`
- Requires: name, vendorType
- Optional: address, website, description, isActive, contacts, projectIds, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_vendor" })`
- CLI: `npx zapier-sdk run-action coperniq write create_vendor`

##### Create Work Order
Creates a work order from a template on a project, opportunity or account.

- Type: write · Key: `create_work_order`
- Requires: parentType, templateId
- Optional: phaseInstanceId, title, description, priority, startDate, startDateAllDay, endDate, endDateAllDay, status, assigneeId, collaborators, labels
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "create_work_order" })`
- CLI: `npx zapier-sdk run-action coperniq write create_work_order`

##### Link Vendor to Project
Links an existing vendor to a project.

- Type: write · Key: `link_vendor_to_project`
- Requires: projectId, vendorId
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "link_vendor_to_project" })`
- CLI: `npx zapier-sdk run-action coperniq write link_vendor_to_project`

##### Replace Project Line Items
Replaces all line items on a project with the ones you provide. Existing line items not included are removed.

- Type: write · Key: `replace_project_line_items`
- Requires: projectId, item_catalogItemId, item_quantity, item_unitCost, item_unitPrice
- Optional: item_description
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "replace_project_line_items" })`
- CLI: `npx zapier-sdk run-action coperniq write replace_project_line_items`

##### Update Account
Updates an existing account. Only the fields you fill in are changed.

- Type: write · Key: `update_account`
- Requires: id
- Optional: title, description, address, accountType, ownerId, primaryEmail, primaryPhone, contacts, parentAccountId, isActive, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_account" })`
- CLI: `npx zapier-sdk run-action coperniq write update_account`

##### Update Appointment
Updates an appointment, for example to reschedule it or mark it complete.

- Type: write · Key: `update_appointment`
- Requires: id
- Optional: opportunityId, title, assigneeId, dueDate, description, isCompleted
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_appointment" })`
- CLI: `npx zapier-sdk run-action coperniq write update_appointment`

##### Update Asset
Updates an existing asset. Only the fields you fill in are changed.

- Type: write · Key: `update_asset`
- Requires: id
- Optional: name, type, status, manufacturer, model, serialNumber, size, labelIds, installDate, manufacturingDate, expectedLifetime, description, isArchived
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_asset" })`
- CLI: `npx zapier-sdk run-action coperniq write update_asset`

##### Update Bill
Updates an existing bill. Only the fields you fill in are changed.

- Type: write · Key: `update_bill`
- Requires: id, item_catalogItemId, item_quantity, item_unitCost, item_unitPrice
- Optional: item_description, percentage, dueDate, issueDate, status, description, internalMemo
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_bill" })`
- CLI: `npx zapier-sdk run-action coperniq write update_bill`

##### Update Catalog Item
Updates a product or service in your catalog. Only the fields you fill in are changed.

- Type: write · Key: `update_catalog_item`
- Requires: id
- Optional: type, name, category, code, description, cost, price, tradeGroup, manufacturer, sku, isArchived, preferredVendorId, unitId, coverage, wasteFactorMode, wasteFactorValue
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_catalog_item" })`
- CLI: `npx zapier-sdk run-action coperniq write update_catalog_item`

##### Update Contact
Updates an existing contact. Only the fields you fill in are changed.

- Type: write · Key: `update_contact`
- Requires: id
- Optional: name, phones, emails, title, accountIds, projectIds
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action coperniq write update_contact`

##### Update Form
Updates a form, for example its assignee, due date or status.

- Type: write · Key: `update_form`
- Requires: id
- Optional: name, description, assigneeId, dueDate, status, labels, collaborators
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_form" })`
- CLI: `npx zapier-sdk run-action coperniq write update_form`

##### Update Invoice
Updates an existing invoice. Only the fields you fill in are changed.

- Type: write · Key: `update_invoice`
- Requires: id, item_catalogItemId, item_quantity, item_unitCost, item_unitPrice
- Optional: status, item_description, percentage, issueDate, dueDate, description, internalMemo
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_invoice" })`
- CLI: `npx zapier-sdk run-action coperniq write update_invoice`

##### Update Opportunity
Updates an existing opportunity. Only the fields you fill in are changed.

- Type: write · Key: `update_opportunity`
- Requires: id
- Optional: title, description, address, trades, accountId, workflowId, phaseId, ownerId, salesRepId, projectManagerId, value, size, confidence, status, primaryEmail, primaryPhone, contacts, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_opportunity" })`
- CLI: `npx zapier-sdk run-action coperniq write update_opportunity`

##### Update Project
Updates an existing project. Only the fields you fill in are changed.

- Type: write · Key: `update_project`
- Requires: id
- Optional: title, description, address, trades, workflowId, phaseId, ownerId, salesRepId, projectManagerId, value, size, status, primaryEmail, primaryPhone, contacts, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_project" })`
- CLI: `npx zapier-sdk run-action coperniq write update_project`

##### Update Reminder
Updates a reminder, for example to mark it complete.

- Type: write · Key: `update_reminder`
- Requires: id
- Optional: parentType, title, assigneeId, description, dueDate, isCompleted, type
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_reminder" })`
- CLI: `npx zapier-sdk run-action coperniq write update_reminder`

##### Update Site
Updates an existing site. Only the fields you fill in are changed.

- Type: write · Key: `update_site`
- Requires: id
- Optional: fullAddress, geoLocation, title, street, city, state, zipcode, timezone
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_site" })`
- CLI: `npx zapier-sdk run-action coperniq write update_site`

##### Update Timesheet
Updates an existing timesheet entry. Only the fields you fill in are changed.

- Type: write · Key: `update_timesheet`
- Requires: id
- Optional: projectId, accountId, opportunityId, workOrderId, targetUserId, startDate, endDate, distance, laborHourlyRate, note, isArchived
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_timesheet" })`
- CLI: `npx zapier-sdk run-action coperniq write update_timesheet`

##### Update Vendor
Updates an existing vendor. Only the fields you fill in are changed.

- Type: write · Key: `update_vendor`
- Requires: id
- Optional: name, vendorType, address, website, description, isActive, contacts, projectIds, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_vendor" })`
- CLI: `npx zapier-sdk run-action coperniq write update_vendor`

##### Update Work Order
Updates a work order, for example its assignee, dates or status. Only the fields you fill in are changed.

- Type: write · Key: `update_work_order`
- Requires: id
- Optional: parentType, title, description, priority, startDate, startDateAllDay, endDate, endDateAllDay, status, assigneeId, collaborators, labels
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "update_work_order" })`
- CLI: `npx zapier-sdk run-action coperniq write update_work_order`

##### Upload File
Uploads a file to a project, opportunity or account from a file or URL.

- Type: write · Key: `upload_file`
- Requires: parentType, url
- Optional: name
- SDK: `runAction({ app: "coperniq", actionType: "write", action: "upload_file" })`
- CLI: `npx zapier-sdk run-action coperniq write upload_file`

#### Queries (12)

Queries read from Coperniq and return data. They change nothing.

##### Find Account
Finds an account by ID, or by any standard or custom property.

- Type: search · Key: `account_search`
- Requires: nothing
- Optional: id, q, title, address, primaryEmail, primaryPhone
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "account_search" })`
- CLI: `npx zapier-sdk run-action coperniq search account_search`

##### Find Catalog Item
Finds a product or service in your catalog by ID, name or SKU.

- Type: search · Key: `catalog_item_search`
- Requires: nothing
- Optional: id, name, sku
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "catalog_item_search" })`
- CLI: `npx zapier-sdk run-action coperniq search catalog_item_search`

##### Find Contact
Finds a contact by ID, name, email or phone number.

- Type: search · Key: `contact_search`
- Requires: nothing
- Optional: id, q
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "contact_search" })`
- CLI: `npx zapier-sdk run-action coperniq search contact_search`

##### Find Form
Finds a form by ID, or by the record, template and status it has.

- Type: search · Key: `form_search`
- Requires: nothing
- Optional: id, projectId, opportunityId, workOrderId, templateId, status
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "form_search" })`
- CLI: `npx zapier-sdk run-action coperniq search form_search`

##### Find Invoice
Finds an invoice by ID, or by invoice number on a specific project or account.

- Type: search · Key: `invoice_search`
- Requires: nothing
- Optional: id, projectId, accountId, invoiceNumber
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "invoice_search" })`
- CLI: `npx zapier-sdk run-action coperniq search invoice_search`

##### Find Opportunity
Finds an opportunity by ID, or by any standard or custom property.

- Type: search · Key: `opportunity_search`
- Requires: nothing
- Optional: id, q, title, address, primaryEmail, primaryPhone
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "opportunity_search" })`
- CLI: `npx zapier-sdk run-action coperniq search opportunity_search`

##### Find Project
Finds a project by ID, or by any standard or custom property.

- Type: search · Key: `project_search`
- Requires: nothing
- Optional: id, q, title, address, primaryEmail, primaryPhone
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "project_search" })`
- CLI: `npx zapier-sdk run-action coperniq search project_search`

##### Find Site
Finds a site by ID, or by account and location.

- Type: search · Key: `site_search`
- Requires: nothing
- Optional: id, accountId, city, state, zipcode
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "site_search" })`
- CLI: `npx zapier-sdk run-action coperniq search site_search`

##### Find User
Finds a user in your Coperniq company by email address.

- Type: search · Key: `user_search`
- Requires: email
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "user_search" })`
- CLI: `npx zapier-sdk run-action coperniq search user_search`

##### Find Vendor
Finds a vendor by ID or name.

- Type: search · Key: `vendor_search`
- Requires: nothing
- Optional: id, name
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "vendor_search" })`
- CLI: `npx zapier-sdk run-action coperniq search vendor_search`

##### Find Workflow
Finds a workflow by ID or name, including its phases.

- Type: search · Key: `workflow_search`
- Requires: nothing
- Optional: id, name
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "workflow_search" })`
- CLI: `npx zapier-sdk run-action coperniq search workflow_search`

##### Find Work Order
Finds a work order by ID, or by title on a specific project, opportunity or account.

- Type: search · Key: `work_order_search`
- Requires: nothing
- Optional: id, parentType, title
- SDK: `runAction({ app: "coperniq", actionType: "search", action: "work_order_search" })`
- CLI: `npx zapier-sdk run-action coperniq search work_order_search`

#### Search or Write Actions (4)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create Account
Finds an account, and creates one if none is found.

- Type: search_or_write · Key: `account_search`
- Requires: title, address
- Optional: id, q, primaryEmail, primaryPhone, description, accountType, ownerId, contacts, parentAccountId, match_by, match_found_strategy, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "search_or_write", action: "account_search" })`
- CLI: `npx zapier-sdk run-action coperniq search_or_write account_search`

##### Find or Create Contact
Finds a contact, and creates one if none is found.

- Type: search_or_write · Key: `contact_search`
- Requires: name
- Optional: id, q, phones, emails, title, accountIds, projectIds
- SDK: `runAction({ app: "coperniq", actionType: "search_or_write", action: "contact_search" })`
- CLI: `npx zapier-sdk run-action coperniq search_or_write contact_search`

##### Find or Create Opportunity
Finds an opportunity, and creates one if none is found.

- Type: search_or_write · Key: `opportunity_search`
- Requires: title, address, trades
- Optional: id, q, primaryEmail, primaryPhone, description, accountId, workflowId, phaseId, ownerId, salesRepId, projectManagerId, value, size, confidence, status, contacts, match_by, match_found_strategy, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "search_or_write", action: "opportunity_search" })`
- CLI: `npx zapier-sdk run-action coperniq search_or_write opportunity_search`

##### Find or Create Project
Finds a project, and creates one if none is found.

- Type: search_or_write · Key: `project_search`
- Requires: title, address
- Optional: id, q, primaryEmail, primaryPhone, description, trades, accountId, workflowId, value, size, status, contacts, match_by, match_found_strategy, allow_new_options
- SDK: `runAction({ app: "coperniq", actionType: "search_or_write", action: "project_search" })`
- CLI: `npx zapier-sdk run-action coperniq search_or_write project_search`

## Links
- Code by Zapier integrations: zapier.com/apps/code/integrations.md
- Coperniq integrations: zapier.com/apps/coperniq/integrations.md
- Full page: zapier.com/apps/code/integrations/coperniq
- SDK: npmjs.com/package/@zapier/zapier-sdk