POST /chat/chatrooms/{chatroom}/messages-product

Path parameters

  • chatroom integer Required

    The chatroom id

application/json

Body

  • id_ambassador integer Required
  • id_product integer Required

Responses

  • 201 application/json

    Return the created message with products

    Hide response attribute Show response attribute object
    • products array
  • 403

    Forbidden - You don't have permission to access this route

POST /chat/chatrooms/{chatroom}/messages-product
curl \
 --request POST 'https://domain.tld/api/v2/chat/chatrooms/{chatroom}/messages-product' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"id_ambassador":5,"id_product":2}'
Request examples
{
  "id_ambassador": 5,
  "id_product": 2
}
Response examples (201)
{
  "products": []
}