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 } } },