at.protocube.saveDraft

Create or replace the caller's working draft for one record. The owner is the service-auth token's issuer; a client never sends a DID.

Repository @protocube.at did:plc:it2qbdcai2lchnnnt3caynqx namespace authority
Details · procedure
Kindprocedure
Authorityprotocube.at
Commit rev3n275pbq6ao2v
Indexed

Procedure

procedure · POST

Input

application/json

baseCid

string · cid

The PDS record CID this draft was loaded from, or absent.

collection

requiredstring · nsid

payload

requiredunknown

Editor-shaped JSON. It is not validated as a record and is capped at 256 KiB.

rkey

requiredstring · record-key

Output

application/json

updatedAt

requiredstring · datetime

Errors

InvalidRequest

No description in schema.

PayloadTooLarge

No description in schema.

Unauthorized

No description in schema.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Read the caller's working draft for one record. Another user's draft is NotFound, never Forbidden.

  • Owner-only encrypted server-private article drafts. Authentication required; owner comes only from the authenticated DID. Never publishes drafts or images to the PDS. Responses use private, no-store and nosniff. Storage unavailable returns Unavailable. Saves use expectedRevision CAS and durable mutationId idempotency; tombstones never resurrect. Explicit Publish/Schedule remain separate actions. Create uses expectedRevision 0; replaying an identical mutation returns the acknowledged snapshot, wh

  • A Skywrite draft, in the account's us.polhem.skywrite.drafts space: a record that isn't published yet, or changes to one that is. The record key is derived from the collection and id, so every device writes a draft to the same record; read those fields rather than the key.

  • Create or update a draft document.

  • Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.