Skip to content

Commit ad681a0

Browse files
authored
Add parent_ids to article request schemas in Preview spec (#478)
* Add parent_ids to article request schemas in Preview spec Add parent_ids (array of integers) to create_article_request and update_article_request schemas, and include parent_ids in the POST and PUT /articles request examples. This complements PR #448 which added parent_ids to response schemas, and reflects the write-side changes from intercom/intercom#499615 (gated on RemoveArticleParentIdAndParentType versioned change). Existing parent_id/parent_type fields are retained — they still function as inputs when parent_ids is not provided. * Update api.intercom.io.yaml Remove references to "sections"
1 parent b3c9834 commit ad681a0

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,8 @@ paths:
13561356
state: published
13571357
parent_id: 145
13581358
parent_type: collection
1359+
parent_ids:
1360+
- 145
13591361
translated_content:
13601362
fr:
13611363
title: Merci pour tout
@@ -1545,6 +1547,9 @@ paths:
15451547
value:
15461548
title: Christmas is here!
15471549
body: "<p>New gifts in store for the jolly season</p>"
1550+
parent_ids:
1551+
- 18
1552+
- 19
15481553
article_not_found:
15491554
summary: Article Not Found
15501555
value:
@@ -19279,7 +19284,7 @@ components:
1927919284
example: http://intercom.test/help/en/articles/3-default-language
1928019285
parent_ids:
1928119286
type: array
19282-
description: The ids of the article's parent collections or sections. An
19287+
description: The ids of the article's parent collections. An
1928319288
article without this field stands alone.
1928419289
items:
1928519290
type: integer
@@ -22108,6 +22113,15 @@ components:
2210822113
type: string
2210922114
description: The type of parent, which can either be a `collection` or `section`.
2211022115
example: collection
22116+
parent_ids:
22117+
type: array
22118+
description: The ids of the article's parent collections.
22119+
An article without this field stands alone.
22120+
items:
22121+
type: integer
22122+
example:
22123+
- 18
22124+
- 19
2211122125
translated_content:
2211222126
"$ref": "#/components/schemas/article_translated_content"
2211322127
folder_id:
@@ -28256,6 +28270,15 @@ components:
2825628270
type: string
2825728271
description: The type of parent, which can either be a `collection` or `section`.
2825828272
example: collection
28273+
parent_ids:
28274+
type: array
28275+
description: The ids of the article's parent collections.
28276+
An article without this field stands alone.
28277+
items:
28278+
type: integer
28279+
example:
28280+
- 18
28281+
- 19
2825928282
translated_content:
2826028283
"$ref": "#/components/schemas/article_translated_content"
2826128284
folder_id:

0 commit comments

Comments
 (0)