Goal: Have a dynamic format with a watermark, created via Postman via API. 

Setup Postman Environment

Ensure that the postman environment variables are set correctly. Check API clients for details. 

Variable

Value

apiToken

In the main menu find Settings. Check if you see API Clients in the settings. Create an API Client. Open Token. Create API Token. 

Otherwise request for your user to be set to "isDeveloper" with support@picturepark.com as this setting is found in the Cloud Manager.

customerAlias

In the main menu open Help and find "System Information". There you find the alias. 

customerId

In the main menu open Help and find "System Information". There you find the customer UID. 

apiHost

The form is https://api.[domain]

See your Picturepark > Settings > System Information for the apiHost.

Post: {{apiHost}}/v1/outputformats/preview

Allows creating a temporary output format to test your settings and get a direct preview of this format for your content. 

Update: contentId and watermarkFilePath

{
    "contentId": "xxx",
    "outputFormat": {
        "sourceOutputFormats": {
            "image": "Preview",
            "video": "VideoPreview",
            "document": "DocumentPreview",
            "audio": "AudioPreview",
            "vector": "VectorPreview"
             
        },
        "format": {
            "kind": "PngFormat",
            "resizeAction": {
                "resizeMode": "Fit",
                "width": 1200,
                "height": 1200
            },
            "actions": [
                {
                    "kind": "WatermarkAction",
                    "watermarkFilePath": "xxx",
                    "widthRatio": 0.4,
                    "heightRatio": 0.4,
                    "opacity": 0.5
                }
            ]
        }
    }
}
CODE

Post: {{apiHost}}/v1/outputformats

  1. Create your format and provide the settings you tested in Step 2. 

Postman File

Create Watermark Format EUM.postman_collection.json