File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,21 @@ mutation createThread($input: CreateThreadInput!) {
54
54
"labelTypeIds" : [" lt_01HB924PME9C0YWKW1N4AK3BZA" ],
55
55
"threadFields" : [{
56
56
"key" : " my_string_field" ,
57
- "type" : " ThreadFieldSchemaType.String " ,
57
+ "type" : " STRING " ,
58
58
"stringValue" : " any value" ,
59
59
}],
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
+ // }],
60
72
}
61
73
}
62
74
```
Original file line number Diff line number Diff line change @@ -33,6 +33,20 @@ const res = await client.createThread({
33
33
type: ThreadFieldSchemaType .String ,
34
34
stringValue: ' any value' ,
35
35
}],
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
+
36
50
});
37
51
38
52
if (res .error ) {
You can’t perform that action at this time.
0 commit comments