---
title: "Files (Pipedrive)"
description: "Tiedostot"
language: fi
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/fi/datamodels/pipedrive/Pipedrive.Notes.Files
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Notes.Files
updated: 2026-12-04T03:59:29Z
license: https://documentation.invantive.eu/fi/
---

# Files: Pipedrive Files

`update` `delete` `REST`

- Luettelo: `Pipedrive`
- Kaavio: `Notes`
- Ensisijaiset avaimet: `id`
- Label: Files

Voit hakea ja muokata tietoja käyttämällä `update` ja `delete`.

## Yhteenveto

The files attached to deals, persons, organizations, products, activities, notes and leads. Each request costs 20 tokens of the daily budget of the company.

## API-lähde

- Päätepiste: `/files`

## Taulukon sarakkeet

Taulukon `Files` sarakkeet on esitetty alla. Jokaisella sarakkeella on oma SQL-tietotyyppinsä. Jokaiselle pakolliselle sarakkeelle on annettava uusi, nollasta poikkeava arvo aina, kun suoritetaan lisäys- tai päivitystoiminto.

| Nimi | Tietotyyppi | Etiketti | Tarvitaan | Merkit | Dokumentaatio |
|---|---|---|:---:|---|---|
| `active_flag` | `char` | Aktiivinen lippu | [ ] | filters on the platform, writable, computed, `active_flag` | Whether the user is active or not. |
| `activity_id` | `int64` | Toiminnon tunnus | [ ] | filters on the platform, writable, computed, `activity_id` | The ID of the activity to associate the file with. |
| `add_time` | `datetime` | Luomisaika | [ ] | filters on the platform, writable, computed, `add_time` | The date and time when the file was added/created. |
| `cid` | `varchar2` | Sisältötunnus | [ ] | filters on the platform, writable, computed, `cid` | The ID of the inline attachment. |
| `deal_id` | `int64` | Kaupan tunnus | [ ] | filters on the platform, writable, computed, `deal_id` | The ID of the deal to associate the file with. |
| `deal_name` | `varchar2` | Kaupan nimi | [ ] | filters on the platform, writable, computed, `deal_name` | The name of the deal associated with the file. |
| `description` | `varchar2` | Kuvaus | [ ] | alustan suodattimet, kirjoitettavissa, `description` | The description of the file. |
| `file_name` | `varchar2` | Tiedoston nimi | [ ] | filters on the platform, writable, computed, `file_name` | The original name of the file. |
| `file_size` | `int64` | Tiedoston koko | [ ] | filters on the platform, writable, computed, `file_size` | The size of the file. |
| `id` | `int64` | ID | [x] | filters on the platform, writable, computed, `id` | The ID of the file. |
| `inline_flag` | `char` | Inline-lippu | [ ] | filters on the platform, writable, computed, `inline_flag` | Whether the file was uploaded as inline or not. |
| `lead_id` | `varchar2` | Johtotunnus | [ ] | filters on the platform, writable, computed, `lead_id` | The ID of the lead to associate the file with. |
| `lead_name` | `varchar2` | Johtajan nimi | [ ] | filters on the platform, writable, computed, `lead_name` | The name of the lead associated with the file. |
| `mail_message_id` | `varchar2` | Sähköpostiviestin tunnus | [ ] | filters on the platform, writable, computed, `mail_message_id` | The ID of the mail message to associate the file with. |
| `mail_template_id` | `varchar2` | Sähköpostimallin tunnus | [ ] | filters on the platform, writable, computed, `mail_template_id` | The ID of the mail template to associate the file with. |
| `name` | `varchar2` | Nimi | [ ] | alustan suodattimet, kirjoitettavissa, `name` | The visible name of the file. |
| `org_id` | `int64` | Organisaation tunnus | [ ] | filters on the platform, writable, computed, `org_id` | The ID of the organization to associate the file with. |
| `org_name` | `varchar2` | Organisaation nimi | [ ] | filters on the platform, writable, computed, `org_name` | The name of the organization associated with the file. |
| `person_id` | `int64` | Henkilötunnus | [ ] | filters on the platform, writable, computed, `person_id` | The ID of the person to associate the file with. |
| `person_name` | `varchar2` | Henkilön nimi | [ ] | filters on the platform, writable, computed, `person_name` | The name of the person associated with the file. |
| `product_id` | `int64` | Tuotetunnus | [ ] | filters on the platform, writable, computed, `product_id` | The ID of the product to associate the file with. |
| `product_name` | `varchar2` | Tuotteen nimi | [ ] | filters on the platform, writable, computed, `product_name` | The name of the product associated with the file. |
| `project_id` | `int64` | Projektin tunnus | [ ] | filters on the platform, writable, computed, `project_id` | The ID of the project to associate the file with. |
| `project_name` | `varchar2` | Projektin nimi | [ ] | filters on the platform, writable, computed, `project_name` | The name of the project associated with the file. |
| `remote_id` | `varchar2` | Etätunniste | [ ] | filters on the platform, writable, computed, `remote_id` | The ID of the remote item. |
| `remote_location` | `varchar2` | Syrjäinen sijainti | [ ] | filters on the platform, writable, computed, `remote_location` | The location type to send the file to. |
| `s3_bucket` | `varchar2` | S3-säilytyspaikka | [ ] | filters on the platform, writable, computed, `s3_bucket` | The location of the cloud storage. |
| `update_time` | `datetime` | Viimeisin päivitysaika | [ ] | filters on the platform, writable, computed, `update_time` | The last updated date and time of the file. |
| `url` | `varchar2` | URL | [ ] | filters on the platform, writable, computed, `url` | The URL of the download file. |
| `user_id` | `int64` | Käyttäjätunnus | [ ] | filters on the platform, writable, computed, `user_id` | The ID of the user to associate the file with. |

## Avaimet

| Avain | Sarake | Viittaa | Laji | Kuvaus |
|---|---|---|---|---|
| `Files_activity_id_fk` | `activity_id` | [Activities](Pipedrive.Activities.Activities)`.id` | Avain |  |
| `Files_deal_id_ArchivedDeals_txt` | `deal_id` | [ArchivedDeals](Pipedrive.Deals.ArchivedDeals)`.id` | Tekstimuotoinen | The deal, in Deals or, once archived, in ArchivedDeals; a deleted deal stays readable for 30 days with status 'deleted'. |
| `Files_deal_id_Deals_txt` | `deal_id` | [Deals](Pipedrive.Deals.Deals)`.id` | Tekstimuotoinen | The deal, in Deals or, once archived, in ArchivedDeals; a deleted deal stays readable for 30 days with status 'deleted'. |
| `Files_lead_id_ArchivedLeads_txt` | `lead_id` | [ArchivedLeads](Pipedrive.Leads.ArchivedLeads)`.id` | Tekstimuotoinen | The lead, in Leads or, once archived, in ArchivedLeads. |
| `Files_lead_id_Leads_txt` | `lead_id` | [Leads](Pipedrive.Leads.Leads)`.id` | Tekstimuotoinen | The lead, in Leads or, once archived, in ArchivedLeads. |
| `Files_org_id_fk` | `org_id` | [Organizations](Pipedrive.Contacts.Organizations)`.id` | Avain |  |
| `Files_person_id_fk` | `person_id` | [Persons](Pipedrive.Contacts.Persons)`.id` | Avain |  |
| `Files_product_id_fk` | `product_id` | [Products](Pipedrive.Products.Products)`.id` | Avain |  |
| `Files_project_id_ArchivedProjects_txt` | `project_id` | [ArchivedProjects](Pipedrive.Projects.ArchivedProjects)`.id` | Tekstimuotoinen | The project, in Projects or, once archived, in ArchivedProjects. |
| `Files_project_id_Projects_txt` | `project_id` | [Projects](Pipedrive.Projects.Projects)`.id` | Tekstimuotoinen | The project, in Projects or, once archived, in ArchivedProjects. |
| `Files_user_id_fk` | `user_id` | [Users](Pipedrive.Users.Users)`.id` | Avain |  |

## Viitattu seuraavissa lähteissä

- [RecentChangesBySinceTimestamp](Pipedrive.Settings.RecentChangesBySinceTimestamp) `id` (tekstuaalinen)
