Skip to content

Commit 1b1e5b2

Browse files
authored
Merge pull request #298 from thibaultdalban/patch-1
Convert id properties from snake_case to camelCase
2 parents 9f35c65 + 796a7b4 commit 1b1e5b2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const article = await client.articles.create({
128128
title: 'Allez les verts',
129129
description: 'French description',
130130
body: '<p>French body in html</p>',
131-
author_id: 1,
131+
authorId: 1,
132132
state: 'published',
133133
},
134134
},
@@ -158,7 +158,7 @@ const article = await client.articles.update({
158158
title: 'Allez les verts',
159159
description: 'French description',
160160
body: '<p>French body in html</p>',
161-
author_id: 1,
161+
authorId: 1,
162162
state: 'published',
163163
},
164164
},
@@ -845,7 +845,7 @@ const article = await client.helpCenter.collections.update({
845845
id: '123',
846846
name: 'Thanks for everything',
847847
description: 'English description',
848-
translated_content: {
848+
translatedContent: {
849849
fr: {
850850
name: 'Allez les verts',
851851
description: 'French description',
@@ -878,7 +878,7 @@ const response = client.helpCenter.collections.list({
878878
```typescript
879879
const collection = await client.helpCenter.sections.create({
880880
name: 'Thanks for everything',
881-
parent_id: '1234',
881+
parentId: '1234',
882882
translatedContent: {
883883
fr: {
884884
name: 'Allez les verts',
@@ -900,8 +900,8 @@ const response = await client.helpCenter.sections.find({ id: '123' });
900900
const article = await client.helpCenter.sections.update({
901901
id: '123',
902902
name: 'Thanks for everything',
903-
parent_id: '456',
904-
translated_content: {
903+
parentId: '456',
904+
translatedContent: {
905905
fr: {
906906
name: 'Allez les verts',
907907
description: 'French description',

0 commit comments

Comments
 (0)