diff --git a/reference/rest-api.json b/reference/rest-api.json index a2d1ac7..f249bc2 100644 --- a/reference/rest-api.json +++ b/reference/rest-api.json @@ -550,56 +550,48 @@ } }, "AttachmentCreateRequest": { - "type": "object", - "required": [ - "attachment" - ], - "additionalProperties": false, - "properties": { - "attachment": { + "type": "object", + "required": [ + "owners" + ], + "additionalProperties": false, + "properties": { + "owners": { + "type": "array", + "description": "Array of owner objects for the attachment", + "items": { "type": "object", "required": [ - "owners" + "type", + "id" ], "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": { "type": "string", - "description": "Name of the attachment" - }, - "file_size": { - "type": "integer", - "description": "Size of the file in bytes" + "description": "Type of the owner (e.g., 'record', 'form')" }, - "metadata": { - "type": "object", - "description": "Optional metadata for the attachment", - "additionalProperties": true + "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 } - }, + } + }, "AttachmentTrackRequest": { "type": "object", "required": [