Skip to content

Commit a3390be

Browse files
committed
add example
1 parent 5e76ad1 commit a3390be

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

_snippets/graphql/create-thread.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ mutation createThread($input: CreateThreadInput!) {
5454
"labelTypeIds": ["lt_01HB924PME9C0YWKW1N4AK3BZA"],
5555
"threadFields": [{
5656
"key": "my_string_field",
57-
"type": "ThreadFieldSchemaType.String",
57+
"type": "STRING",
5858
"stringValue": "any value",
5959
}],
6060
}

_snippets/typescript-sdk/create-thread.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ const res = await client.createThread({
3333
type: ThreadFieldSchemaType.String,
3434
stringValue: 'any value',
3535
}],
36+
37+
// You can also set other thread field types like boolean or enum.
38+
// threadFields: [{
39+
// key: 'my_enum_field',
40+
// type: ThreadFieldSchemaType.Enum,
41+
// stringValue: 'any specified value',
42+
// }],
43+
// threadFields: [{
44+
// key: 'my_bool_field',
45+
// type: ThreadFieldSchemaType.Bool,
46+
// booleanValue: true,
47+
// }],
48+
3649
});
3750

3851
if (res.error) {

0 commit comments

Comments
 (0)