Put an account back on its posts
After a reconnect, put the account back on the posts it was on before it was disconnected.
posts:update and posts:schedule, and a role in the workspace that can edit and publish posts. See Permissions.posts_to_put_back, and the workspace owner and managers get an account.posts_to_put_back notification. Nothing changes until someone chooses: tell the user what posts_to_put_back says, and ask before you call this. dismiss: true closes the offer and changes no post.
Putting back only adds the account. Each post is handled on its own:
not_done and stays as it was; calling again tries it again, and otherwise does nothing more.
Published posts come back on their own
Posts the account had already published don’t need this call. Right after the reconnect, PostSyncer links them to the new account again with their link, numbers, day-by-day analytics and comments, as they were when the account was disconnected.relinked says how many. That sends nothing: no post, first comment, auto plug, comment reply or notification goes out, and the posts’ status doesn’t change. Comments written on the network while the account was disconnected are read in later, but comment moderation doesn’t act on them. A post that still has repeats to come is left out, so the account isn’t added to its next repeats.
Errors
Related
- Get an account: the offer, in
posts_to_put_back. - Delete an account: what disconnecting does to posts.
Authorizations
Body
Response
Put back, or the offer closed.
- Put back
- Dismissed
Posts by what putting back does with them (all 11 are always there): scheduled_again (a draft the disconnect took off the schedule, unchanged since, scheduled again at its time), added_to_scheduled (scheduled or waiting for approval: the account is added, the time stays), added_to_draft (a draft stays a draft), added_to_draft_time_passed and added_to_draft_changed (taken off the schedule by the disconnect, but its time passed or it was edited since, so it stays a draft), added_to_draft_refused (kept a draft because the plan's post limit refused scheduling it), skipped_deleted, skipped_already_there, skipped_went_out (published, failed or sending), skipped_time_passed (due within 5 minutes), and not_done (an error stopped it; calling again tries it again).