Skip to main content

put_record

Function put_record 

Source
pub(crate) async fn put_record(
    __arg0: State<AppState>,
    headers: HeaderMap,
    __arg2: XrpcBody,
) -> Response
Expand description

POST /xrpc/com.atproto.repo.putRecord

The upsert, which is what it is in atproto: a key already in use is replaced rather than refused, and that is now the difference between this and create_record. Both swapRecord and swapCommit are honoured, and swapRecord: null asserts the record does not exist yet.