Edit LinkedIn post
Input
url requiredPermalink of a post owned by the logged-in account, e.g. https://www.linkedin.com/feed/update/urn:li:share:7498370628849147904/ — as returned by create_post, get_post or get_profile_posts. Query string is ignored. A post belonging to someone else is refused, since LinkedIn offers no Edit action on it.
text requiredThe new post body, replacing the existing one entirely. This edits a real, public post immediately and irreversibly — the previous text is not recoverable through this script — so show the exact replacement text to the user and get their explicit approval for this specific content before running. Approval from an earlier or unrelated message does not carry over. LinkedIn publicly marks an edited post as edited.
Output
url requiredThe permalink acted on, query string stripped.
text requiredThe new body that was saved.
edited requiredTrue once the Save went through.
account_used requiredDisplay name of the logged-in member, read from the post's own author line rather than assumed.
verified_on_page requiredTrue only if the permalink was reloaded after saving and the post actually renders the new text. Never inferred from the dialog closing.
unchanged optionalTrue when the requested text already matched the post's current body — nothing was saved, because LinkedIn keeps Save disabled until the text actually differs.
previous_text optionalThe body as it stood before this edit, read out of the editor. Null if it could not be read.
