com.atproto.repo.create_record¶
- class atproto_client.models.com.atproto.repo.create_record.Data¶
Bases:
DataModelBase
Input data model for
com.atproto.repo.createRecord
.- field collection: str [Required]¶
The NSID of the record collection.
- field record: UnknownInputType [Required]¶
The record itself. Must contain a $type field.
- field repo: str [Required]¶
The handle or DID of the repo (aka, current account).
- field rkey: str | None = None¶
The Record Key.
- Constraints:
max_length = 15
- field swap_commit: str | None = None¶
Compare and swap with the previous commit by CID.
- field validate_: bool | None = None¶
Can be set to ‘false’ to skip Lexicon schema validation of record data.
- class atproto_client.models.com.atproto.repo.create_record.DataDict(*args, **kwargs)¶
Bases:
dict
- collection: str¶
The NSID of the record collection.
- record: UnknownInputType¶
The record itself. Must contain a $type field.
- repo: str¶
The handle or DID of the repo (aka, current account).
- rkey: typing_extensions.NotRequired[str | None]¶
The Record Key.
- swap_commit: typing_extensions.NotRequired[str | None]¶
Compare and swap with the previous commit by CID.
- validate: typing_extensions.NotRequired[bool | None]¶
Can be set to ‘false’ to skip Lexicon schema validation of record data.
- class atproto_client.models.com.atproto.repo.create_record.Response¶
Bases:
ResponseModelBase
Output data model for
com.atproto.repo.createRecord
.- field cid: str [Required]¶
Cid.
- field uri: str [Required]¶
Uri.