com.atproto.repo.put Record
POST {{baseUrl}}/xrpc/com.atproto.repo.putRecord
This endpoint is part of the atproto PDS repository management APIs. Requests usually require authentication (unlike the `com.atproto.sync.` endpoints), and are made directly to the user's own PDS instance.*
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.
Request Body
{"repo"=>"<at-identifier>", "collection"=>"<nsid>", "rkey"=>"<string>", "record"=>{}, "validate"=>"<boolean>", "swapRecord"=>"<cid>", "swapCommit"=>"<cid>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"uri":"\u003cat-uri\u003e","cid":"\u003ccid\u003e","commit":{"cid":"\u003ccid\u003e","rev":"\u003cstring\u003e"},"validationStatus":"\u003cstring\u003e"}