Update User Search

Update User Search

Updates the user search with the id provided in the model with the model's data. Can be used to update recent search usage.

Request
URI
PUT
https://{api_host}/vco/api/user-search/{id}
COPY
Path Parameters
string
id
Required

id


Request Body
WsUserSearch of type(s) application/json
Required
{
    "id": "string",
    "query": "string",
    "context": {
        "type": "string",
        "object-type": "string"
    },
    "created-at": 0,
    "updated-at": 0
}
string
id
Optional

id

string
query
Optional

query

object
context
Optional

context

integer As int64 As int64
created-at
Optional

created-at

integer As int64 As int64
updated-at
Optional

updated-at

Authentication
This operation uses the following authentication methods.
Responses
200

The request is successful

Returns WsUserSearch of type(s) application/json
"WsUserSearch Object"
string
id
Optional

id

string
query
Optional

query

object
context
Optional

context

integer As int64 As int64
created-at
Optional

created-at

integer As int64 As int64
updated-at
Optional

updated-at


400

The provided object is invalid

Returns WsUserSearch of type(s) application/json
"WsUserSearch Object"
string
id
Optional

id

string
query
Optional

query

object
context
Optional

context

integer As int64 As int64
created-at
Optional

created-at

integer As int64 As int64
updated-at
Optional

updated-at


401

The user is not authorized

Returns WsUserSearch of type(s) application/json
"WsUserSearch Object"
string
id
Optional

id

string
query
Optional

query

object
context
Optional

context

integer As int64 As int64
created-at
Optional

created-at

integer As int64 As int64
updated-at
Optional

updated-at


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/vco/api/user-search/{id}