com.atproto.repo.delete_record#
- pydantic model atproto.xrpc_client.models.com.atproto.repo.delete_record.Data#
Bases:
DataModelBase
Input data model for
com.atproto.repo.deleteRecord
.Show JSON schema
{ "title": "Data", "description": "Input data model for :obj:`com.atproto.repo.deleteRecord`.", "type": "object", "properties": { "collection": { "title": "Collection", "type": "string" }, "repo": { "title": "Repo", "type": "string" }, "rkey": { "title": "Rkey", "type": "string" }, "swapCommit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Swapcommit" }, "swapRecord": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Swaprecord" } }, "additionalProperties": false, "required": [ "collection", "repo", "rkey" ] }
- Fields:
- field collection: str [Required]#
The NSID of the record collection.
- field repo: str [Required]#
The handle or DID of the repo.
- field rkey: str [Required]#
The key of the record.
- field swap_commit: Optional[str] = None (alias 'swapCommit')#
Compare and swap with the previous commit by cid.
- field swap_record: Optional[str] = None (alias 'swapRecord')#
Compare and swap with the previous record by cid.
- class atproto.xrpc_client.models.com.atproto.repo.delete_record.DataDict#
Bases:
TypedDict
- collection: str#
The NSID of the record collection.
- repo: str#
The handle or DID of the repo.
- rkey: str#
The key of the record.
- swap_commit: typing_extensions.NotRequired[Optional[str]]#
Compare and swap with the previous commit by cid.
- swap_record: typing_extensions.NotRequired[Optional[str]]#
Compare and swap with the previous record by cid.