From c3ba12ed60adaae1a3206158b95d4725e11de549 Mon Sep 17 00:00:00 2001 From: Samet Ozcan Date: Wed, 11 Jun 2025 11:49:57 +0100 Subject: [PATCH 1/2] Update OpenAPI spec for ticket updated attribute metadata --- descriptions/0/api.intercom.io.yaml | 64 +++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 4b69da7..2f47b13 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -19958,6 +19958,70 @@ components: nullable: false example: text-integration description: The app package code if this part was created via API. Note this field won't show if the part was not created via API. + updated_attribute_data: + title: Updated Attribute + type: object + description: The updated attribute data of the ticket part for attribute update parts. + properties: + attribute: + type: object + description: Information about the attribute that was updated. + properties: + type: + type: string + description: The type of the object. Always 'attribute'. + enum: + - attribute + example: attribute + id: + type: string + description: The unique identifier of the attribute. + example: "7" + label: + type: string + description: The human-readable name of the attribute. + example: "Progress" + required: + - type + - id + - label + value: + type: object + description: The new value of the attribute. + properties: + type: + type: string + description: The type of the object. Always 'value'. + enum: + - value + example: value + id: + oneOf: + - type: string + description: The value for text/number/decimal/boolean/date attributes, or the ID of the list option for list attributes. + example: "Fast" + - type: array + description: Array of file IDs for file attributes. + items: + type: integer + example: [2] + label: + oneOf: + - type: string + description: The display value for text/number/decimal/boolean/date/list attributes. + example: "Fast" + - type: array + description: Array of file names for file attributes. + items: + type: string + example: ["photo.png"] + required: + - type + - id + - label + required: + - attribute + - value ticket_part_author: title: Ticket part author type: object From 7f2fe11a40ac735296f69ab8d482c1ec6fa665c8 Mon Sep 17 00:00:00 2001 From: Samet Ozcan Date: Wed, 11 Jun 2025 12:14:44 +0100 Subject: [PATCH 2/2] Added examples --- descriptions/0/api.intercom.io.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 2f47b13..6632798 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -12442,6 +12442,15 @@ paths: email: operator+this_is_an_id692_that_should_be_at_least_@intercom.io attachments: [] redacted: false + updated_attribute_data: + attribute: + type: "attribute" + id: "10" + label: "Photo" + value: + type: "value" + id: [2] + label: ["photo.png"] - type: ticket_part id: '178' part_type: ticket_attribute_updated_by_admin @@ -12454,6 +12463,15 @@ paths: email: operator+this_is_an_id692_that_should_be_at_least_@intercom.io attachments: [] redacted: false + updated_attribute_data: + attribute: + type: "attribute" + id: "7" + label: "Progress" + value: + type: "value" + id: "Fast" + label: "Fast" - type: ticket_part id: '179' part_type: ticket_state_updated_by_admin @@ -19961,7 +19979,8 @@ components: updated_attribute_data: title: Updated Attribute type: object - description: The updated attribute data of the ticket part for attribute update parts. + description: The updated attribute data of the ticket part. Only present for attribute update parts. + nullable: true properties: attribute: type: object @@ -19999,6 +20018,7 @@ components: oneOf: - type: string description: The value for text/number/decimal/boolean/date attributes, or the ID of the list option for list attributes. + nullable: true example: "Fast" - type: array description: Array of file IDs for file attributes.