{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesforce Experience Cloud Salesforce CMS Connect Actions Sites 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": "Sites",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Experience Cloud List Experience Cloud Sites",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/connect/communities",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter sites by status. Valid values are Live, Inactive, DownForMaintenance, UnderConstruction."
              }
            ]
          },
          "docs": "Returns a list of all Experience Cloud sites (communities) available to the context user. Includes site metadata such as name, status, URL path prefix, and template information."
        },
        {
          "info": {
            "name": "Salesforce Experience Cloud Create an Experience Cloud Site",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/connect/communities",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new Experience Cloud site with the specified name, template, and URL path prefix. Requires the Create and Set Up Experiences permission."
        },
        {
          "info": {
            "name": "Salesforce Experience Cloud Get an Experience Cloud Site",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/connect/communities/:communityId",
            "params": [
              {
                "name": "communityId",
                "value": "",
                "type": "path",
                "description": "The ID of the Experience Cloud site (community)"
              }
            ]
          },
          "docs": "Returns detailed information about a specific Experience Cloud site including its name, description, status, URL path prefix, template type, and login and self-registration URLs."
        },
        {
          "info": {
            "name": "Salesforce Experience Cloud Update an Experience Cloud Site",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{instance}.salesforce.com/services/data/v59.0/connect/cms/connect/communities/:communityId",
            "params": [
              {
                "name": "communityId",
                "value": "",
                "type": "path",
                "description": "The ID of the Experience Cloud site (community)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the properties of an existing Experience Cloud site such as its name, description, and status."
        }
      ]
    }
  ],
  "bundled": true
}