From bfe848ae2d15e581d085b8dad061bade1651ee83 Mon Sep 17 00:00:00 2001 From: "Ramiro S." <111815717+ramiro51@users.noreply.github.com> Date: Mon, 27 Apr 2026 12:30:58 -0300 Subject: [PATCH] Update AttachmentCreateRequest schema properties "type": "object", "required": [ "owners" ], "additionalProperties": false, "properties": { "owners": { "type": "array", "description": "Array of owner objects for the attachment", "items": { "type": "object", "required": [ "type", "id" ], "properties": { "type": { "type": "string", "description": "Type of the owner (e.g., 'record', 'form')" }, "id": { "type": "string", "description": "Identifier of the owner" } } } }, "name": { "type": "string", "description": "Name of the attachment" }, "file_size": { "type": "integer", "description": "Size of the file in bytes" }, "metadata": { "type": "object", "description": "Optional metadata for the attachment", "additionalProperties": true } } }, --- reference/rest-api.json | 70 ++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 39 deletions(-) diff --git a/reference/rest-api.json b/reference/rest-api.json index a2d1ac7..22feb4a 100644 --- a/reference/rest-api.json +++ b/reference/rest-api.json @@ -552,51 +552,43 @@ "AttachmentCreateRequest": { "type": "object", "required": [ - "attachment" + "owners" ], "additionalProperties": false, "properties": { - "attachment": { - "type": "object", - "required": [ - "owners" - ], - "properties": { - "owners": { - "type": "array", - "description": "Array of owner objects for the attachment", - "items": { - "type": "object", - "required": [ - "type", - "id" - ], - "properties": { - "type": { - "type": "string", - "description": "Type of the owner (e.g., 'record', 'form')" - }, - "id": { - "type": "string", - "description": "Identifier of the owner" - } - } + "owners": { + "type": "array", + "description": "Array of owner objects for the attachment", + "items": { + "type": "object", + "required": [ + "type", + "id" + ], + "properties": { + "type": { + "type": "string", + "description": "Type of the owner (e.g., 'record', 'form')" + }, + "id": { + "type": "string", + "description": "Identifier of the owner" } - }, - "name": { - "type": "string", - "description": "Name of the attachment" - }, - "file_size": { - "type": "integer", - "description": "Size of the file in bytes" - }, - "metadata": { - "type": "object", - "description": "Optional metadata for the attachment", - "additionalProperties": true } } + }, + "name": { + "type": "string", + "description": "Name of the attachment" + }, + "file_size": { + "type": "integer", + "description": "Size of the file in bytes" + }, + "metadata": { + "type": "object", + "description": "Optional metadata for the attachment", + "additionalProperties": true } } },