Evo Voice

<back to all web services

PatchSettingsObject

Update the specified settings object

Requires Authentication
Required role:User
The following routes are available for this service:
PATCH/app/settings-objects/{id}
PatchSettingsObject Parameters:
NameParameterData TypeRequiredDescription
IdpathstringNoThe ID of the settings object
DataqueryStructNoThe data values to set
Value Parameters:
NameParameterData TypeRequiredDescription
BoolValueformbool?No
StringValueformstringNo
NumberValueformdouble?No
ListValueformList<Struct>No
StructValueformStructNo
SettingsObject Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
DescriptionformstringNo
ReadOnlyformboolNo
TypeformSettingsObjectTypesNo
EndpointTypeformEndpointTypes?No
FieldsformList<SettingsField>No
SettingsObjectTypes Enum:
Endpoint
Customer
EndpointTypes Enum:
PhoneNumber
User
FaxNumber
EmailAddress
Unused_1
Unused_2
Unused_3
Unused_4
Unused_5
Team
Assistant
SettingsField Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
DisplayNameformstringNo
TypeformValueTypesNo
ValueformValueNo
ReadOnlyformboolNo
PossibleValuesformList<SettingsPossibleValue>No
DataFieldformDataFieldNo
ValueTypes Enum:
NotSpecified
String
Boolean
Number
List
Struct
Transition
Custom
Date
AudioFile
TimeZoneId
PhoneNumber
User
Endpoint
Time
File
FaxNumber
EmailAccount
Customer
Flow
Team
FlowReference
Integration
Assistant
SettingsPossibleValue Parameters:
NameParameterData TypeRequiredDescription
DisplayNameformstringNo
ValueformValueNo
DataField Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
TypeformValueTypesNo
UIHintformUIHintsNo
UITabformstringNo
IsAsyncformboolNo
DisableBindingformboolNo
StructTypeformDataTypeNo
ListTypeformDataTypeNo
DescriptionformstringNo
PossibleValuesformList<string>No
IsOutputformboolNo
CustomFieldValuesUrlformstringNo
DefaultValueformValueNo
TransitionNameFormatformstringNo
UniquenessformDataFieldUniquenessNo
VoiceOnlyformboolNo
ConditionalVisibilityFieldformstringNo
ConditionalVisibilityValueformstringNo
NoEvalTemplateformboolNo
UserModeformUserDataFieldModesNo
AnyValueTypeformboolNo
UIHints Enum:
None
LargeText
InlineForm
Password
InlineStruct
DataType Parameters:
NameParameterData TypeRequiredDescription
TypeNameformstringNo
FieldsformList<DataField>No
DataFieldUniqueness Enum:
NotUnique
Unique
UniqueToCustomer
UserDataFieldModes Enum:
Hidden
ReadOnly
ReadWrite

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PATCH /app/settings-objects/{id} HTTP/1.1 
Host: team.evovoice.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	name: String,
	description: String,
	readOnly: False,
	type: Endpoint,
	endpointType: PhoneNumber,
	fields: 
	[
		{
			name: String,
			displayName: String,
			type: NotSpecified,
			value: 
			{
				boolValue: False,
				stringValue: String,
				numberValue: 0,
				listValue: 
				[
					null
				]
			},
			readOnly: False,
			possibleValues: 
			[
				{
					displayName: String,
					value: 
					{
						boolValue: False,
						stringValue: String,
						numberValue: 0,
						listValue: 
						[
							null
						]
					}
				}
			]
		}
	]
}