Menu
Create
Create query configuration for a solution
POST
/rest/organizations/{organizationId}/commerce/v2/configurations/queryUse it in a workflow
- Add a step and choose the Coveo connector.
- Pick the Create action (under Commerce).
- Fill in the fields below, then reference the result from later steps as
{{create.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"configurationModel": {
"additionalFields": [
"color",
"shirtsize"
],
"facets": {
"enableIndexFacetOrdering": false,
"facets": [
null
],
"freezeFacetOrder": false
},
"grouping": {
"type": "none"
},
"numberOfChildren": 0,
"perPage": 20,
"sorts": [
{
"fields": [
{
"direction": "asc",
"displayNames": [
{
"language": "en",
"value": "Price"
},
{
"language": "fr",
"value": "Prix"
}
],
"field": "ec_price"
}
],
"sortCriteria": "fields"
}
]
},
"solutionType": "listing",
"trackingId": "acmecorporation_ca",
"isGlobal": false,
"targets": [
"Surf With Us This Year"
]
}
Response
Returns 201 with an object. Read it in later steps with {{create.response.data.<field>}}.
{
"additionalFields": [
"color",
"shirtsize"
],
"facets": {
"enableIndexFacetOrdering": false,
"facets": [
null
],
"freezeFacetOrder": false
},
"grouping": {
"type": "none"
},
"numberOfChildren": 0,
"perPage": 20,
"sorts": [
{
"fields": [
{
"direction": "asc",
"displayNames": [
{
"language": "en",
"value": "Price"
},
{
"language": "fr",
"value": "Prix"
}
],
"field": "ec_price"
}
],
"sortCriteria": "fields"
}
]
}
Need more? See the Coveo guide for connection setup and behaviour shared by every action.
Was this page helpful?