Watermarks (Files)

Apply watermark to file

Changed on

Applies or update a watermark on a file.

put/files/{file_id}/watermark

Request

  • Base URL
    https://api.box.com/2.0
  • URL
    https://api.box.com/2.0/files/{file_id}/watermark
  • Auth
    OAuth 2
    Authorization code: https://account.box.com/api/oauth2/authorize
    Token URL: https://api.box.com/oauth2/token

Path parameters

file_idstring required

The unique identifier that represents a file.

The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/files/123 the file_id is 123.

Request body

Example request

{
  "watermark": {
    "imprint": "default"
  }
}

Response

Returns an updated watermark if a watermark already existed on this file.

Example response

{
  "watermark": {
    "created_at": "2012-12-12T10:53:43-08:00",
    "modified_at": "2012-12-12T10:53:43-08:00"
  }
}

Changes

    • warning

      added the new unprocessable_entity enum value to the response property for the response status