# Update file export status and tags
Source: https://docs.file.ai/api-reference/files/update-file-export-status-and-tags

> This endpoint allows integrated systems to update the export status of a file, its tags, or both.

patch /prod/v1/files/{fileId}

This endpoint allows integrated systems to update the export status of a file, its tags, or both.

Send at least one of `integrationExportStatus` and `tagIds`. `integrationExportMessages` is only accepted together with `integrationExportStatus`.

`tagIds` replaces the file's tags with the given tag ids from `GET /v1/tags` (at most 50; repeated ids are collapsed). Send `[]` to remove every tag, or leave the field out to keep the current tags. An unknown or deleted tag id returns 422 and changes nothing. Changing the tags of a deleted file returns 404.

Use this endpoint for pull-based integrations where integrated systems need to report back:
- Whether a file was successfully exported to the integrated system
- Any error messages or status information from the integrated system

The export status and message will be visible in the file list UI.
