Documents

Link files

Link files to other areas of the platform, such as an asset.

post/documents/v1/link

Request

  • Base URL
    https://api.mitti.com
  • Auth
    HTTP bearer

Request body

file_idsstring[]

The ids of the files to be linked To get the file_id, open the file in the SafetyCulture web app and copy the last part of the URL. For example, in this link https://app.safetyculture.com/documents/document/765aa2e6-69cb-43b5-8ab4-48ab26e2a094, the file ID is 765aa2e6-69cb-43b5-8ab4-48ab26e2a094.

entity_idsstring[] required

The ids of the entities that the file(s) are being linked to To get the entity_id, open the entity (e.g. asset) in the SafetyCulture web app and copy the last part of the URL. For example, in this link https://app.safetyculture.com/assets/765aa2e6-69cb-43b5-8ab4-48ab26e2a094, the entity ID is 765aa2e6-69cb-43b5-8ab4-48ab26e2a094.

domain'LINKED_FILE_DOMAIN_UNSPECIFIED' | 'LINKED_FILE_DOMAIN_ASSET' required

Response

A successful response.

Changes

No recorded changes to this operation across all 2 revisions of this API.