Attach an ambassador point of sale (manager)
Path parameters
-
The ambassador id
Body
-
id_point_of_sale integer
The id of the point of sale
PATCH /manager/ambassadors/{id}/point-of-sale
curl \
-X PATCH https://domain.tld/api/v2/manager/ambassadors/{id}/point-of-sale \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id_point_of_sale":1}'
Request examples
{
"id_point_of_sale": 1
}
Response examples (200)
{
"message": "Point of sale attached successfully"
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}