com.atproto.repo.create Record
POST {{baseUrl}}/xrpc/com.atproto.repo.createRecord
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.
Create a single new repository record. Requires auth, implemented by PDS.
Request Body
{"repo"=>"<at-identifier>", "collection"=>"<nsid>", "record"=>{}, "rkey"=>"<string>", "validate"=>"<boolean>", "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"}