{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesforce Experience Cloud Salesforce CMS Connect Actions Media API",
    "version": "59.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.salesforce.com/services/oauth2/authorize",
      "accessTokenUrl": "https://login.salesforce.com/services/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Media",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Experience Cloud List CMS Media",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/media",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Number of items per page (default 25, max 250)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number to retrieve (0-indexed)"
              },
              {
                "name": "folderId",
                "value": "",
                "type": "query",
                "description": "Filter media by folder ID"
              }
            ]
          },
          "docs": "Returns a list of media files (images, documents) stored in the CMS workspace."
        },
        {
          "info": {
            "name": "Salesforce Experience Cloud Upload CMS Media",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/media",
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "title",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "folderId",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Uploads a media file (image, document, or video) to the CMS workspace."
        },
        {
          "info": {
            "name": "Salesforce Experience Cloud Get CMS Media",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/media/:mediaId",
            "params": [
              {
                "name": "mediaId",
                "value": "",
                "type": "path",
                "description": "The ID of the media file"
              }
            ]
          },
          "docs": "Returns metadata about a specific media file including its URL, dimensions, file type, and alt text."
        },
        {
          "info": {
            "name": "Salesforce Experience Cloud Delete CMS Media",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/media/:mediaId",
            "params": [
              {
                "name": "mediaId",
                "value": "",
                "type": "path",
                "description": "The ID of the media file"
              }
            ]
          },
          "docs": "Deletes the specified media file from the CMS workspace."
        }
      ]
    }
  ],
  "bundled": true
}