Skip to content

Commit bffa5a9

Browse files
committed
add example
1 parent 5e76ad1 commit bffa5a9

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

_snippets/graphql/create-thread.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,21 @@ 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
}],
60+
// You can also set other thread field types like boolean or enum.
61+
// "threadFields": [{
62+
// "key": "my_enum_field",
63+
// "type": "ENUM",
64+
// "stringValue": "any specified value",
65+
// }],
66+
//
67+
// "threadFields": [{
68+
// "key": "my_bool_field",
69+
// "type": "BOOL",
70+
// "booleanValue": true,
71+
// }],
6072
}
6173
}
6274
```

_snippets/typescript-sdk/create-thread.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ 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+
//
44+
// threadFields: [{
45+
// key: 'my_bool_field',
46+
// type: ThreadFieldSchemaType.Bool,
47+
// booleanValue: true,
48+
// }],
49+
3650
});
3751

3852
if (res.error) {

0 commit comments

Comments
 (0)