POST
/
cart
/
setSelectedServer
/
{id}
curl --request POST \
  --url https://v3.minestorecms.com/api/cart/setSelectedServer/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "server_id": 456
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the item for which the server is being set.

Body

application/json
server_id
integer
required

The ID of the server to be associated with the item.

Example:

456

Response

200
application/json
Successfully set the selected server for the item in the cart.
success
boolean

Indicates if the operation was successful.