Get a channel type
get
/services/rest/connect/v1.4/channelTypes/{id}
Request
Path Parameters
-
id(required): integer
The unique identifier of the channel type.
Response
Default Response
Root Schema : channelTypes
Type:
objectThe social channels tracked in contact records when storing social account user names and associating social monitor incidents to contacts.
Show Source
-
attributes:
object channelTypes-attributes
The details about the channel type options.
-
contactVisibility:
boolean
Indicates whether the channel is available in the ChannelUsername collection. This attribute does not have a default value and is read-only.
-
createdTime:
string
The date and time when the channel type was created. This attribute is read-only.
-
displayOrder:
integer
Minimum Value:
1Maximum Value:32767The position of the channel type in the list of channels. -
id:
integer
Minimum Value:
1Maximum Value:9223372036854776000The unique identifier of the channel type. -
lookupName:
string
Maximum Length:
255The name used to look up the channel type. -
name:
string
Maximum Length:
80The name of the channel type in the language of the current interface. This attribute is read-only. -
names:
object channelTypes-names
The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
-
updatedTime:
string
The date and time when the channel type was last updated. This attribute is read-only.
Nested Schema : channelTypes-attributes
Type:
objectThe details about the channel type options.
Show Source
-
contactVisibility:
boolean
Indicates whether the channel is visible to contacts. This attribute does not have a default value.
-
incoming:
boolean
Indicates whether it is an incoming channel. This attribute does not have a default value.
-
monitoring:
boolean
Indicates whether it is a monitoring channel. This attribute does not have a default value.
-
outgoing:
boolean
Indicates whether it is an outgoing channel. This attribute does not have a default value.
-
subscription:
boolean
Indicates whether it is a subscription channel. This attribute does not have a default value.
Nested Schema : channelTypes-names
Type:
objectThe language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
Show Source
-
labelText:
string
Maximum Length:
80The language-specific label text. The value cannot be null or empty. -
language:
object namedIDs-channelTypes-names-language
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Nested Schema : namedIDs-channelTypes-names-language
Type:
objectAn ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id:
integer
Minimum Value:
0ID value -
lookupName:
string
Maximum Length:
255Name used to lookup this object
Examples
Use GET with the following syntax to retrieve data for a channel type object:
https://your_site_interface/services/rest/connect/version/channelTypes/channel_type_idRequest URI example
https://mysite.example.com/services/rest/connect/v1.4/channelTypes/9Response body example
{
"id": 9,
"lookupName": "Email",
"attributes": {
"contactVisibility": false,
"incoming": true,
"monitoring": false,
"outgoing": true,
"subscription": false
},
"contactVisibility": false,
"displayOrder": 9,
"name": "Email",
"names": {
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/channelTypes/9/names"
}
]
},
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/channelTypes/9"
},
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/channelTypes/9"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/channelTypes",
"mediaType": "application/schema+json"
}
]
}