Update Option by Cluster lookup key and Option Id
PATCH/clusters/:lookupKey/:lookupValue/options/:optionId
Use this endpoint to update single cluster option by cluster lookup key and option id.
Request
Path Parameters
Lookup key. Read more about cluster lookup keys
The value of the key (id or sourceId)
The value of option id
- application/json
Body
Array [
]
Array [
]
Array [
]
descriptions
object[]
names
object[]
shortDescriptions
object[]
Responses
- 200
- 404
Update Option by Cluster lookup key and Option Id - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Option by Cluster lookup key and Option Id - 200
Schema
Array [
]
Array [
]
Array [
]
data
object
descriptions
object[]
names
object[]
shortDescriptions
object[]
{
"data": {
"descriptions": [
{
"language": "NL",
"value": "Muis"
},
{
"language": "EN",
"value": "Mouse"
}
],
"id": 214,
"isRequired": "N",
"names": [
{
"language": "NL",
"value": "Muis"
},
{
"language": "EN",
"value": "Mouse"
}
],
"shortDescriptions": [
{
"language": "NL",
"value": "Muis"
},
{
"language": "EN",
"value": "Mouse"
}
],
"source": "REST-API",
"sourceId": "K72334000"
},
"messages": [
"Cluster Option updated"
],
"total": 1
}
{
"data": {
"descriptions": [
{
"language": "NL",
"value": "Muis"
},
{
"language": "EN",
"value": "Mouse"
}
],
"id": 214,
"isRequired": "N",
"names": [
{
"language": "NL",
"value": "Muis"
},
{
"language": "EN",
"value": "Mouse"
}
],
"shortDescriptions": [
{
"language": "NL",
"value": "Muis"
},
{
"language": "EN",
"value": "Mouse"
}
],
"source": "REST-API",
"sourceId": "K72334000"
},
"messages": [
"Cluster Option updated"
],
"total": 1
}
Update Option by Cluster lookup key and Option Id - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Update Option by Cluster lookup key and Option Id - 404
Schema
error
object
{
"error": {
"code": 20010,
"messages": [
"Cluster Option with id [216] not found for the cluster with id [213]"
],
"moreInfo": "https://www.propel.us/docs/errors/20010",
"status": 404,
"type": "ClusterOptionNotFound"
}
}
{
"error": {
"code": 20010,
"messages": [
"Cluster Option with id [216] not found for the cluster with id [213]"
],
"moreInfo": "https://www.propel.us/docs/errors/20010",
"status": 404,
"type": "ClusterOptionNotFound"
}
}