View as Markdown
CompanyCam icon

CompanyCam ACTION

Add Photo

Add a photo to a project. See the docs.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's CompanyCam account once, then configure and run Add Photo 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: "companycam-add-photo",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    companycam: { authProvisionId: "apn_xxxxxxx" },
    projectId: "Project ID",
    photoUri: "Photo URI",
  },
})

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.

Add Photo inputs
Property Type Description
projectId Project ID string
The ID of the project.
Required Dynamic
photoUri Photo URI string
The URI of the photo.
Required
photoCapturedAt Photo Captured At string
The date and time the photo was captured. Unix timestamp when the Photo was captured.
Required
coordinateLat Coordinate Latitude string
The latitude of the photo.
Optional
coordinateLon Coordinate Longitude string
The longitude of the photo.
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
companycam-add-photo
Version
0.0.3
App
CompanyCam
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes