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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | protocube.at |
| Commit rev | 3n275pbq6ao2v |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "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.",
"errors": [
{
"name": "InvalidRequest"
},
{
"name": "PayloadTooLarge"
},
{
"name": "Unauthorized"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"baseCid": {
"description": "The PDS record CID this draft was loaded from, or absent.",
"format": "cid",
"type": "string"
},
"collection": {
"format": "nsid",
"type": "string"
},
"payload": {
"description": "Editor-shaped JSON. It is not validated as a record and is capped at 256 KiB.",
"type": "unknown"
},
"rkey": {
"format": "record-key",
"type": "string"
}
},
"required": [
"collection",
"rkey",
"payload"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"updatedAt": {
"format": "datetime",
"type": "string"
}
},
"required": [
"updatedAt"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "at.protocube.saveDraft",
"lexicon": 1
}