{
  "opencollection": "1.0.0",
  "info": {
    "name": "HubSpot Analytics Events Access Tokens Drafts and Revisions API",
    "version": "3.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Drafts and Revisions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Hubspot Push Draft to Live",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubapi.com/cms/v3/blogs/posts/:objectId/draft/push-live",
            "params": [
              {
                "name": "objectId",
                "value": "123456789012",
                "type": "path",
                "description": "The unique identifier of the blog post"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Push the draft version of a blog post to become the live version."
        },
        {
          "info": {
            "name": "Hubspot Reset Draft to Live Version",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubapi.com/cms/v3/blogs/posts/:objectId/draft/reset",
            "params": [
              {
                "name": "objectId",
                "value": "123456789012",
                "type": "path",
                "description": "The unique identifier of the blog post"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Reset the draft version of a blog post to match the live version."
        },
        {
          "info": {
            "name": "Hubspot Get Revision History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/cms/v3/blogs/posts/:objectId/revisions",
            "params": [
              {
                "name": "objectId",
                "value": "123456789012",
                "type": "path",
                "description": "The unique identifier of the blog post"
              },
              {
                "name": "limit",
                "value": "20",
                "type": "query",
                "description": "Maximum number of revisions to return"
              },
              {
                "name": "after",
                "value": "example-value",
                "type": "query",
                "description": "Pagination cursor"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve the revision history for a blog post."
        },
        {
          "info": {
            "name": "Hubspot Restore a Previous Version",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubapi.com/cms/v3/blogs/posts/:objectId/revisions/:revisionId/restore",
            "params": [
              {
                "name": "objectId",
                "value": "123456789012",
                "type": "path",
                "description": "The unique identifier of the blog post"
              },
              {
                "name": "revisionId",
                "value": "rev_123456",
                "type": "path",
                "description": "The revision ID to restore"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Restore a blog post to a previous version from its revision history."
        }
      ]
    }
  ],
  "bundled": true
}