Bluesky icon

Bluesky

Interact with the Bluesky social platform

Actions94

Repo → Apply Writes

AI-generated

Summary

Apply a batch of write actions in a single request to a specified Bluesky repo, optionally using a swapCommit CID for optimistic concurrency control.

Inputs

  • Repo (DID or Handle) (required) — The target repository identifier, specified either as a DID or a handle.
  • Swap Commit — An optional commit CID to enable optimistic concurrency, ensuring the writes apply if the repo is at the expected commit.
  • Writes JSON (required) — A JSON-formatted array of write actions representing the changes to apply to the repo.

Output shape

The operation returns the response from the Bluesky API confirming the applied writes, typically including commit information.

Ensure the Writes JSON is a valid JSON array of write actions formatted according to Bluesky API specifications. If provided, the swapCommit CID is used to guarantee the repo state matches before applying writes, otherwise writes apply against the latest commit.

Examples

Example 1: Apply multiple changes atomically to a Bluesky repo

Specify the repo DID or handle, optionally include the current commit CID for concurrency, and provide a JSON array of write operations to be applied in one API call.

Links

Discussion