mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
export const metadata = {
|
|
title: 'Patches',
|
|
description: 'Definition of the Patch entity',
|
|
}
|
|
|
|
# Patches
|
|
|
|
Patches are entities that indicate a change to another entity. They are sent to instances as a kind of "reindex this entity" message. Patches are used to update entities that have already been distributed to other instances.
|
|
|
|
## Entity Definition
|
|
|
|
<Row>
|
|
<Col>
|
|
<Properties>
|
|
<Property name="patched" type="URI" required={true} typeLink="/types#uri">
|
|
URI of the entity that was patched. Must be an absolute URI on the same instance.
|
|
</Property>
|
|
</Properties>
|
|
</Col>
|
|
<Col sticky>
|
|
```jsonc {{ 'title': 'Example Patch (deletes attachments from the previous page\\'s Note)' }}
|
|
{
|
|
"id": "be96bb7a-4b8e-45f9-93aa-23633eb3cfdc",
|
|
"type": "Patch", // [!code focus]
|
|
"uri": "https://social.lysand.org/objects/be96bb7a-4b8e-45f9-93aa-23633eb3cfdc",
|
|
"created_at": "2024-06-19T01:07:44.139Z",
|
|
"patched": "https://social.lysand.org/notes/9a8928b6-2526-4979-aab1-ef2f88cd5700", // [!code focus]
|
|
}
|
|
```
|
|
</Col>
|
|
</Row> |