View as Markdown
Crowdin icon

Crowdin ACTION

Add File to Project

Adds a file into the created project. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Crowdin account once, then configure and run Add File to Project 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: "crowdin-add-file",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    crowdin: { authProvisionId: "apn_xxxxxxx" },
    projectId: "Project ID",
    file: "File Path Or Url",
  },
})

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 File to Project inputs
Property Type Description
projectId Project ID string
The ID of the project
Required Dynamic
file File Path Or Url string
Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/example.jpg)
Required
name Name string
The name of the file in Crowdin. Note: Can't contain \ / : * ? " < > | symbols. ZIP files are not allowed.
Required
branchId Branch ID string
Defines branch to which file will be added. Note: Can't be used with Directory Id in same request
Optional Dynamic
directoryId Directory ID string
The ID of the directory. Note: Can't be used with Branch Id in same request
Optional Dynamic
title Title string
Use to provide more details for translators. Title is available in UI only
Optional
context Context string
Use to provide context about whole file
Optional
type File Type string
The type of the file. Note: Use docx type to import each cell as a separate source string for XLSX file. Default is auto
Optional
parserVersion Parser Version integer
Using latest parser version by default. Note: Must be used together with type.
Optional
attachLabelIds Attach Label IDs string[]
The IDs of the labels to attach
Optional Dynamic
syncDir SyncDir dir
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
crowdin-add-file
Version
1.0.3
App
Crowdin
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes