Attachment::postSaveΒΆ
{
"version": "0.1",
"data": {
"id": 502,
"original_filename": "factuur-kano-huur.pdf",
"filename": "factuur-kano-huur-20240620.pdf",
"size": 267894,
"type": "accounting",
"contactmoment_id": 132,
"created_at": "2024-06-20T14:10:00+00:00",
"updated_at": "2024-06-20T14:10:00+00:00"
},
"meta": {}
}
Explanation:
id: integer.
original_filename: string|null.
filename: string|null.
size: integer|null.
Explanation: size is the file size in bytes.
type: non-empty-string. Allowed values: manual, psp, accounting.
contactmoment_id: int|null.
created_at: ISO 8601 creation datetime string.
updated_at: ISO 8601 last update datetime string.
Webhook selection: use Attachment::postInsert for creations and Attachment::postUpdate for updates.