2024-07-31 19:34:41 +02:00
export const metadata = {
title: 'Patches',
description: 'Definition of the Patch entity',
}
# Patches
2024-08-02 16:10:27 +02:00
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.
2024-07-31 19:34:41 +02:00
## Entity Definition
<Row>
<Col>
<Properties>
2024-08-02 16:10:27 +02:00
<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.
2024-07-31 19:34:41 +02:00
</Property>
</Properties>
</Col>
<Col sticky>
```jsonc {{ 'title': 'Example Patch (deletes attachments from the previous page\\'s Note)' }}
{
"id": "be96bb7a-4b8e-45f9-93aa-23633eb3cfdc",
2024-07-31 19:54:51 +02:00
"type": "Patch", // [!code focus]
2024-07-31 19:34:41 +02:00
"uri": "https://social.lysand.org/objects/be96bb7a-4b8e-45f9-93aa-23633eb3cfdc",
"created_at": "2024-06-19T01:07:44.139Z",
2024-08-02 16:10:27 +02:00
"patched": "https://social.lysand.org/notes/9a8928b6-2526-4979-aab1-ef2f88cd5700", // [!code focus]
2024-07-31 19:34:41 +02:00
}
```
</Col>
</Row>