Files

Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for <a href="https://pipedrive.readme.io/docs/adding-a-file" target="_blank" rel="noopener noreferrer">adding a file</a>.

post/files

Request

  • Base URL
    https://api.pipedrive.com/v1
  • Auth
    • API key in header x-api-token
    • or OAuth 2
      Authorization code: https://oauth.pipedrive.com/oauth/authorize
      Token URL: https://oauth.pipedrive.com/oauth/token scopes: deals:full, activities:full, contacts:full

Request body multipart/form-data

filestring binary required

A single file, supplied in the multipart/form-data encoding and contained within the given boundaries

deal_idinteger

The ID of the deal to associate file(s) with

person_idinteger

The ID of the person to associate file(s) with

org_idinteger

The ID of the organization to associate file(s) with

product_idinteger

The ID of the product to associate file(s) with

activity_idinteger

The ID of the activity to associate file(s) with

lead_idstring uuid

The ID of the lead to associate file(s) with

project_idinteger

The ID of the project to associate file(s) with

Response

Add a file from computer or Google Drive and associate it with deal, person, organization, activity or product

successboolean

If the request was successful or not

Changes

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status