Skip to main content
POST
Replace the tags on a file

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
mode
enum<string>
required

Mode of user identification

Available options:
login,
token,
email,
phone,
custom
identity
string
required

User identifier corresponding to the mode

fileuuid
string
required

UUID of the file to retag

tags
required

The complete replacement tag set — an array or a comma-separated string

request_metadata
object

Additional metadata for the request

Response

Tags replaced successfully

status
string
Example:

"ok"

token
string

User token that owns the file

fileuuid
string
tags
string[]

The normalised tag set now stored