# Set a file's tags **PATCH /cases/files/{caseFileId}/tags** Replaces the tags applied to a case file and returns the file. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **caseFileId** (string) Id of the case file ### Body: application/json (object) - **caseId** (string) Id of the case the file belongs to. Required so @CaseAccess can authorize the caller (an OC included) on the case. - **tags** (array[string]) Array of tag ids or tag names. Replaces the existing tags with this list. Pass an empty array to remove all tags. ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)