{
  "opencollection": "1.0.0",
  "info": {
    "name": "LinkedIn Compliance Events Access Control Use Cases > Posts API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.linkedin.com/oauth/v2/authorization",
      "accessTokenUrl": "https://www.linkedin.com/oauth/v2/accessToken",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Use Cases > Posts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "LinkedIn Get Posts by URN",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.linkedin.com/posts/:encoded ugcPostUrn|shareUrn",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ]
          },
          "docs": "Creating posts with image requires uploading an image asset to obtain a Image URN (urn:li:image:{id}) for creating the post. See the [Images API](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/images-api?view=li-lms-2022-08) for instructions on how to do this."
        },
        {
          "info": {
            "name": "LinkedIn Delete a Post",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.linkedin.com/posts/:encoded ugcPostUrn|shareUrn",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ]
          },
          "docs": "Post deletions are idempotent. Deletion requests for a previously deleted UGC Post will return a `204` code - No Content.\n\n####"
        },
        {
          "info": {
            "name": "LinkedIn Update a Post",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.linkedin.com/posts/:shared ID/:ugcPosts ID",
            "headers": [
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              },
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              }
            ]
          },
          "docs": "The following `posts` field are available to update. Refer to [Schema](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/posts-api?view=li-lms-2022-08&tabs=http#post-schema) for complete field details.\n\n| Field | Description |\n| --- | --- |\n| commentary | String |\n| contentCallToActionLabel | contentCallToActionLabel text |\n| contentLandingPage | URL of the landing page |\n| reshareContext |  |\n| lifecycleState |  |\n| adContext | \\*   dscName: Update the"
        }
      ]
    }
  ],
  "bundled": true
}