Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion postman/Preview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ This directory contains the Postman collection for Intercom API version Preview.
3. Set your access token in the environment variables
4. Start making API calls!

Last updated: 2026-04-16T09:25:36.792Z
Last updated: 2026-10-05T18:52:42.049Z
10,367 changes: 7,996 additions & 2,371 deletions postman/Preview/intercom-api.postman_collection.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions scripts/postman/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ module.exports = class Collection {
});
}

serialize(key, value) {
if (value === undefined || value === null) {
return '';
}
return typeof value === 'string' ? value : JSON.stringify(value);
}

fetchExample(param) {
if (param.value) {
return String(param.value);
Expand Down
3 changes: 3 additions & 0 deletions scripts/postman/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ module.exports = class Example {
return this.value(prop.items.oneOf[0]);
} else if (prop.type === 'array' && prop.items.properties) {
return [this.value(prop.items)];
} else if (prop.type === 'array') {
// A sampled element is not accepted: attachment_urls: [""] is an undownloadable URL.
return [];
} else if (prop.oneOf) {
return this.value(prop.oneOf[0]);
} else if (prop.type === 'string' && prop.enum) {
Expand Down
Loading