{ "opencollection": "1.0.0", "info": { "name": "Optimizely Campaign REST Assets API", "version": "1.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Assets", "type": "folder" }, "items": [ { "info": { "name": "List assets", "type": "http" }, "http": { "method": "GET", "url": "https://api.campaign.episerver.net/rest/:clientId/assets", "params": [ { "name": "clientId", "value": "", "type": "path", "description": "The unique identifier for the Optimizely Campaign client" } ] }, "docs": "Returns a list of campaign assets such as images and media files." }, { "info": { "name": "Upload an asset", "type": "http" }, "http": { "method": "POST", "url": "https://api.campaign.episerver.net/rest/:clientId/assets", "params": [ { "name": "clientId", "value": "", "type": "path", "description": "The unique identifier for the Optimizely Campaign client" } ], "body": { "type": "multipart-form", "data": [ { "name": "file", "type": "text", "value": "" }, { "name": "name", "type": "text", "value": "" } ] } }, "docs": "Uploads a new asset for use in campaigns." }, { "info": { "name": "List assets", "type": "http" }, "http": { "method": "GET", "url": "https://api.campaign.episerver.net/rest/assets", "params": [ { "name": "limit", "value": "", "type": "query", "description": "Maximum number of items to return" }, { "name": "offset", "value": "", "type": "query", "description": "Number of items to skip for pagination" } ] }, "docs": "Returns a list of digital assets in the CMP library, including images, videos, and raw files. Supports filtering and pagination." }, { "info": { "name": "Create an asset", "type": "http" }, "http": { "method": "POST", "url": "https://api.campaign.episerver.net/rest/assets", "body": { "type": "multipart-form", "data": [ { "name": "file", "type": "text", "value": "" }, { "name": "title", "type": "text", "value": "" }, { "name": "description", "type": "text", "value": "" } ] } }, "docs": "Creates a new digital asset in the CMP library by uploading a file." }, { "info": { "name": "Get an asset", "type": "http" }, "http": { "method": "GET", "url": "https://api.campaign.episerver.net/rest/assets/:assetId", "params": [ { "name": "assetId", "value": "", "type": "path", "description": "The unique identifier for the asset" } ] }, "docs": "Retrieves the details of a specific asset by its identifier." }, { "info": { "name": "Update an asset", "type": "http" }, "http": { "method": "PUT", "url": "https://api.campaign.episerver.net/rest/assets/:assetId", "params": [ { "name": "assetId", "value": "", "type": "path", "description": "The unique identifier for the asset" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the specified asset with the provided metadata." }, { "info": { "name": "Delete an asset", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.campaign.episerver.net/rest/assets/:assetId", "params": [ { "name": "assetId", "value": "", "type": "path", "description": "The unique identifier for the asset" } ] }, "docs": "Permanently deletes the specified asset from the CMP library." } ] } ], "bundled": true }