# Set an email's tags **PATCH /local-emails/{userEmailDataId}/tags** Replaces the email's tags with the given list (an empty list removes them) and returns the email. On a case shared with opposing counsel, the response shows only the caller's own tags. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **userEmailDataId** (string) ### Body: application/json (object) - **caseId** (string) Id of the case the email 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 email's 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)