Skip to content

FilesApi addFile error: 'Invalid input: file - This field was not expected.', #682

@artem-man

Description

@artem-man
import {Configuration as PipeDriveV1Configuration, FilesApi} from "pipedrive/v1";


const apiConfig = new PipeDriveV1Configuration({apiKey: ####});
const apiInstance = new FilesApi(tmpApiConfig);
const opts = {
  file: 'test.csv',
  activity_id: 123
}

await apiInstance.addFile(opts)

{
success: false,
error: 'Invalid input: file - This field was not expected.',
error_info: 'Please check developers.pipedrive.com for more information about Pipedrive API.',
data: null,
additional_data: null
}

Please provide a valid example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions