Perform autocomplete search
GET/autocomplete
Perform autocomplete search
Request
Query Parameters
q stringrequired
The autocomplete query
Header Parameters
X-SaleCycle-Id stringrequired
Your SaleCycle API Subscription key
Responses
- 200
- 400
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
completed stringrequired
The portion of the text that has been auto-completed
highlighted stringrequired
The full result, with highlighting of the completion
{
"data": [
{
"completed": "string",
"highlighted": "t-s<strong>hirt</strong>"
}
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]required
status stringrequired
title stringrequired
detail stringrequired
{
"errors": [
{
"status": "string",
"title": "string",
"detail": "string"
}
]
}
Loading...