All Verbs | /ui/autocomplete/values |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class ListAutoCompleteValues
{
/**
* Account ID
*/
@ApiMember(Description="Account ID")
open var accountId:String? = null
/**
* Filter by customer ID
*/
@ApiMember(Description="Filter by customer ID")
open var customerId:String? = null
/**
* The type of value
*/
@ApiMember(Description="The type of value")
@SerializedName("type") open var Type:ValueTypes? = null
/**
* The query text to search for
*/
@ApiMember(Description="The query text to search for")
open var query:String? = null
/**
* Type specific filter
*/
@ApiMember(Description="Type specific filter")
open var typeSpecificFilter:String? = null
/**
* The value to search for (will only return one result)
*/
@ApiMember(Description="The value to search for (will only return one result)")
open var value:String? = null
/**
* Should the results be sent back in plain text or with embedded HTML?
*/
@ApiMember(Description="Should the results be sent back in plain text or with embedded HTML?")
open var plainText:Boolean? = null
/**
* Include full info?
*/
@ApiMember(Description="Include full info?")
open var fullInfo:Boolean? = null
/**
* List all values, only use for small lists.
*/
@ApiMember(Description="List all values, only use for small lists.")
open var all:Boolean? = null
}
enum class ValueTypes
{
NotSpecified,
String,
Boolean,
Number,
List,
Struct,
Transition,
Custom,
Date,
AudioFile,
TimeZoneId,
PhoneNumber,
User,
Endpoint,
Time,
File,
FaxNumber,
EmailAccount,
Customer,
Flow,
Team,
FlowReference,
Integration,
Assistant,
}
open class ListAutoCompleteValuesResponse
{
open var values:ArrayList<AutoCompleteValue>? = null
}
open class AutoCompleteValue
{
/**
* Display name
*/
@ApiMember(Description="Display name")
open var displayName:String? = null
/**
* Value
*/
@ApiMember(Description="Value")
open var value:String? = null
}
Kotlin ListAutoCompleteValues DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ui/autocomplete/values HTTP/1.1
Host: team.evovoice.io
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"accountId":"String","customerId":"String","type":"NotSpecified","query":"String","typeSpecificFilter":"String","value":"String","plainText":false,"fullInfo":false,"all":false}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"values":[{"displayName":"String","value":"String"}]}