You need the Manage Fields permission to manage Fields.
LiveChat_Field is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
guid | Id of the field. |
isSystem |
bool | Whether the field is system field or not. |
name |
string | Name of the field. |
type |
string | Type of the field.Allowed values are "text", "textArea", "radioBox", "checkBox", "dropdownList", "checkboxList", "nps", "attachment", "rating", "checkboxListOptionGroups", "category", "comment". |
leftText |
string | Left text of the field, only works for post chat. |
rightText |
string | Right text of the field, only works for post chat. |
fieldOptions |
fieldOptions[] | Reference to Field Option. |
GET livechat/fields
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed value is "fieldOption". |
An array of LiveChat_Field
Sample Request:
Response:
HTTP/1.1 200 OK
GET livechat/fields/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed value is "fieldOption". |
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/fields
Name | Type | In | Required | Description |
---|---|---|---|---|
isSystem |
bool | body | no | Whether the field is system field or not. |
name |
string | body | yes | Name of the field. |
type |
string | body | no | Type of the field.Allowed values are "text", "textArea", "radioBox", "checkBox", "dropdownList", "checkboxList", "nps", "attachment", "rating", "checkboxListOptionGroups", "category", "comment". |
leftText |
string | body | no | Left text of the field, only works for post chat. |
rightText |
string | body | no | Right text of the field, only works for post chat. |
fieldOptions |
fieldOptions[] | body | yes | Reference to Field Option. |
Sample Request:
Response:
HTTP/1.1 201 Created
PUT livechat/fields/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
isSystem |
bool | body | no | Whether the field is system field or not. |
name |
string | body | yes | Name of the field. |
type |
string | body | no | Type of the field.Allowed values are "text", "textArea", "radioBox", "checkBox", "dropdownList", "checkboxList", "nps", "attachment", "rating", "checkboxListOptionGroups", "category", "comment". |
leftText |
string | body | no | Left text of the field, only works for post chat. |
rightText |
string | body | no | Right text of the field, only works for post chat. |
fieldOptions |
fieldOptions[] | body | yes | Reference to Field Option. |
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE livechat/fields/{id}
No Content
Sample Request:
Response:
HTTP/1.1 204 No Content
Field Option is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
guid | Id of the field option. |
fieldId |
guid | Id of the field which the field option belongs to. |
parentOptionId |
guid | Id of the parent field option which the field option belongs to. |
value |
string | Value of the field option. |
order |
integer | Order of the field option. |
GET livechat/fieldOptions
Sample Request:
Response:
HTTP/1.1 200 OK
GET livechat/fieldOptions/{id}
Sample Request:
Response:
HTTP/1.1 200 OK