Patrons
Update Patron
Update a patron's details including contact info, comments, and CRM tags.
Authorization
bearerAuth AuthorizationBearer <token>
Supports two token types:
- Restaurant tokens — API tokens with
restaurant-apiability, issued per restaurant. - User tokens — Personal access tokens with
mobile-accessability (e.g. for the mobile app). When managing multiple restaurants, includeX-Restaurant-Id: <id>header.
In: header
Path Parameters
patron*integer
Patron ID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://devrms.tabdevx.com/api/restaurant/patrons/0" \ -H "Content-Type: application/json" \ -d '{ "name": "John Doe", "email": "john@example.com", "is_vip": true }'{
"message": "Patron updated successfully",
"data": {
"id": 456,
"name": "John Doe",
"email": "john@example.com",
"mobile_number": "+35612345678"
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Booking not found.",
"details": null
},
"meta": {
"timestamp": "2026-03-18T10:00:00Z"
}
}{
"message": "The given data was invalid.",
"errors": {
"date": [
"The date field is required."
],
"adults": [
"The adults must be at least 1."
]
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}