Actions94
- Account Actions
- Auth Actions
- Analytics Actions
- Chat Actions
- Feed Actions
- Graph Actions
- Identity Actions
- List Actions
- Label Actions
- Lexicon Actions
- Moderation Actions
- Notification Actions
- Post Actions
- Preferences Actions
- Repo Actions
- Search Actions
- Sync Actions
- User Actions
Repo → Apply Writes
AI-generatedSummary
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.