From 1b3cd26bd9b05a79f1407f6ff050fb6a3d44b695 Mon Sep 17 00:00:00 2001 From: Will Molloy Date: Tue, 24 Mar 2026 16:47:35 +1100 Subject: [PATCH 1/2] BRC-10702 Add CreatedDateUtc and AssociationDateUtc to Association schema Add CreatedDateUtc and AssociationDateUtc properties to the Association schema, add missing Size and new AssociationDateUtc to the sort enum, and add date fields to the response example for GET /Associations/{ObjectId}. Co-Authored-By: Claude Opus 4.6 --- xero_files.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xero_files.yaml b/xero_files.yaml index 91df52681..411ea638d 100644 --- a/xero_files.yaml +++ b/xero_files.yaml @@ -415,7 +415,9 @@ paths: type: string enum: - Name - - CreatedDateUTC + - Size + - CreatedDateUtc + - AssociationDateUtc example: Associations/{ObjectId}?sort=CreatedDateUtc - in: query name: direction @@ -435,7 +437,7 @@ paths: type: array items: $ref: "#/components/schemas/Association" - example: '[ { "SendWithObject":false, "Name":"testfile.pdf", "Size":12357, "FileId":"6beccb4a-0d7d-4518-93f3-e0cd1dccb254", "ObjectId":"1270bf7c-5d18-473a-9231-1e36c4bd33ed", "ObjectType":"Business", "ObjectGroup":"Contact" } ]' + example: '[ { "SendWithObject":false, "Name":"testfile.pdf", "Size":12357, "CreatedDateUtc":"2020-12-10T01:22:00.0000000", "AssociationDateUtc":"2020-12-10T01:22:00.0000000", "FileId":"6beccb4a-0d7d-4518-93f3-e0cd1dccb254", "ObjectId":"1270bf7c-5d18-473a-9231-1e36c4bd33ed", "ObjectType":"Business", "ObjectGroup":"Contact" } ]' /Associations/Count: parameters: - $ref: "#/components/parameters/requiredHeader" @@ -828,6 +830,16 @@ components: description: The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint. type: integer example: 12357 + CreatedDateUtc: + description: The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + type: string + format: date-time + example: "2020-12-10T01:22:00.0000000" + AssociationDateUtc: + description: The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint. + type: string + format: date-time + example: "2020-12-10T01:22:00.0000000" FileId: description: The unique identifier of the file type: string From feb2940936a9313f3b9ca33f33b0e49f271b7735 Mon Sep 17 00:00:00 2001 From: Will Molloy Date: Tue, 24 Mar 2026 17:04:59 +1100 Subject: [PATCH 2/2] BRC-10702 Add default sort CreatedDateUtc for associations Co-Authored-By: Claude Opus 4.6 --- xero_files.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/xero_files.yaml b/xero_files.yaml index 411ea638d..d8d6e2814 100644 --- a/xero_files.yaml +++ b/xero_files.yaml @@ -418,6 +418,7 @@ paths: - Size - CreatedDateUtc - AssociationDateUtc + default: CreatedDateUtc example: Associations/{ObjectId}?sort=CreatedDateUtc - in: query name: direction