arazzo: 1.0.1
info:
title: LinkedIn Delete an Organization Post
summary: Read a post by URN, and when it exists delete it idempotently.
description: >-
Removing a LinkedIn post should confirm the post exists first. This workflow
reads a post by its URN and branches: when the read succeeds it deletes the
post, and when the post cannot be read it ends without attempting a deletion.
Post deletions are idempotent — the API returns a 204 No Content on success.
Every step spells out its request inline, including the Authorization bearer
token and the required LinkedIn-Version header, so the flow can be read and
executed without opening the underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-400.60
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-400.60
capability_name: Digital Marketing Management
spec: linkedin-use-cases-posts-api-openapi.yml
confidence: 0.7
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: useCasesPostsApi
url: ../openapi/linkedin-use-cases-posts-api-openapi.yml
type: openapi
workflows:
- workflowId: delete-organization-post
summary: Read a post by URN and delete it when it exists.
description: >-
Retrieves a post by its URN and, when the read succeeds, deletes the post.
Deletions are idempotent and return 204 No Content.
inputs:
type: object
required:
- authorization
- linkedinVersion
properties:
authorization:
type: string
description: The OAuth 2.0 bearer credential, e.g. "Bearer <access-token>".
linkedinVersion:
type: string
description: The LinkedIn-Version header in YYYYMM format (e.g. "202401").
steps:
- stepId: readPost
description: >-
Read the post by its URN to confirm it exists before attempting deletion.
operationId: getGetPostsByUrn
parameters:
- name: Authorization
in: header
value: $inputs.authorization
- name: LinkedIn-Version
in: header
value: $inputs.linkedinVersion
- name: X-Restli-Protocol-Version
in: header
value: "2.0.0"
successCriteria:
- condition: $statusCode == 200
outputs:
post: $response.body
onSuccess:
- name: postFound
type: goto
stepId: deletePost
criteria:
- condition: $statusCode == 200
- stepId: deletePost
description: >-
Delete the post. Deletions are idempotent; a previously deleted post still
returns a 204 No Content.
operationId: deleteDeleteAPost
parameters:
- name: Authorization
in: header
value: $inputs.authorization
- name: LinkedIn-Version
in: header
value: $inputs.linkedinVersion
- name: X-Restli-Protocol-Version
in: header
value: "2.0.0"
successCriteria:
- condition: $statusCode == 204 || $statusCode == 200
outputs:
deleteStatus: $statusCode
outputs:
deleteStatus: $steps.deletePost.outputs.deleteStatus
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.