Skip to content

Reorder Questions

POST
/api/Products/{productId}/questions/reorder
curl --request POST \
--url https://example.com/api/Products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/questions/reorder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "productId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "orders": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "order": 1 } ] }'

Bulk update of the display order. Send the full set of question ids you intend to position; any ids not included are left untouched.

productId
required
string format: uuid
object
productId
string format: uuid
orders
required
Array<object>
>= 1 items
object
id
string format: uuid
order
integer format: int32
Example generated
{
"productId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"orders": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"order": 1
}
]
}

No Content

Not Found

Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}