com.atproto.repo.createRecord
POSTcom.atproto.repo.createRecord
Create a single new repository record. Requires auth, implemented by PDS.
Request
- application/json
Body
required
repo at-identifierrequired
The handle or DID of the repo (aka, current account).
collection nsidrequired
The NSID of the record collection.
rkey string
Possible values: <= 15 characters
The Record Key.
validate boolean
Default value: true
Can be set to 'false' to skip Lexicon schema validation of record data.
record required
swapCommit cid
Compare and swap with the previous commit by CID.
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
uri at-urirequired
cid cidrequired
{
"uri": "string",
"cid": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
, InvalidSwap
]
message stringrequired
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error required
message stringrequired
{
"message": "string"
}
Loading...