Update a profile search template record
put
/spms/v1/profileSearchTemplate
This is to update a profile search template record
Request
Supported Media Types
- application/json
Root Schema : templateEdit
Type:
Show Source
object-
enabled(optional):
boolean
Indicates whether this field is enabled or notExample:
true -
id(optional):
integer
Example:
1234 -
name(optional):
string
Minimum Value:
1Maximum Value:500Pattern:^[a-zA-Z0-9 ]*$Search Configuration NameExample:Basic Guest Search -
profileSearchFilter(optional):
array profileSearchFilter
-
profileSearchResult1(optional):
array profileSearchResult1
-
profileSearchStatus(optional):
array profileSearchStatus
-
startSearchCharacter(optional):
integer
Minimum Value:
1Maximum Value:10Start Search After CharacterExample:3
Nested Schema : profileSearchFilter
Type:
Show Source
arrayExample:
[
{
"id":1,
"parentid":1234,
"templateFieldId":1
},
{
"id":2,
"parentid":1234,
"templateFieldId":2
},
{
"id":3,
"parentid":1234,
"templateFieldId":3
}
]Nested Schema : profileSearchResult1
Type:
Show Source
arrayExample:
[
{
"id":4,
"parentid":1234,
"templateFieldId":6
},
{
"id":5,
"parentid":1234,
"templateFieldId":7
},
{
"id":6,
"parentid":1234,
"templateFieldId":8
}
]Nested Schema : profileSearchStatus
Type:
Show Source
arrayExample:
[
{
"id":1,
"parentid":1234,
"status":"RR"
},
{
"id":2,
"parentid":1234,
"status":"CC"
}
]Nested Schema : items
Type:
Show Source
object-
templateFieldId(optional):
integer
Minimum Value:
1Selected Search Filter
Nested Schema : items
Type:
Show Source
object-
templateFieldId(optional):
integer
Minimum Value:
1Selected Search Result
Nested Schema : items
Type:
Show Source
object-
status(optional):
string
Minimum Value:
2Maximum Value:2Reservation Status
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : SearchConfiguration
Type:
objectSearch configuration response
Show Source
-
createdBy(optional):
integer
Creator IDExample:
1234 -
createdDate(optional):
string
Example:
1961-04-01T16:00:00.000+0000 -
deleted(optional):
integer
Delete statusExample:
0 -
enabled(optional):
boolean
Indicates whether this field is enabled or notExample:
true -
id(optional):
integer
profile search configuration IdExample:
1234 -
modifiedBy(optional):
integer
Modifier IDExample:
1234 -
modifiedDate(optional):
string
Example:
1961-04-01T16:00:00.000+0000 -
name(optional):
string
Search Configuration NameExample:
Basic Guest Search -
profileSearchFilter(optional):
array profileSearchFilter
-
profileSearchResult(optional):
array profileSearchResult
-
profileSearchStatus(optional):
array profileSearchStatus
-
startSearchCharacter(optional):
integer
Start Search After CharacterExample:
3
Nested Schema : profileSearchStatus
Type:
Show Source
array-
Array of:
object reservationStatus
reservation status
Nested Schema : searchFields
Type:
objectsearch fields
Show Source
-
description(optional):
string
-
fieldName(optional):
string
-
tableName(optional):
string
-
type(optional):
integer
1 = ReturnFilter, 2 = SearchResultExample:
1
Nested Schema : reservationStatus
Type:
objectreservation status
Show Source
-
id(optional):
integer
This is the profile search reservation status idExample:
1 -
parentId(optional):
integer
This is the profile search reservation status parent idExample:
1234 -
status(optional):
string
This is the profile search reservation statusExample:
RR
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
"detail":"The parameter typeId has incorrect format"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Unauthorized",
"detail":"Valid token is required to access this resource"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource is forbidden"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
"title":"Not Found",
"detail":"This resource path does not exist"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
"title":"Not Acceptable",
"detail":"Request a Mime type that is supported for this Resource"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Invalid content",
"detail":"Content type Not supported"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Issue fulfilling request. Please retry or contact support"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service Unavailable. Try again later"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source