Name | Edit Property Attractions |
---|---|
Description | Edit the attractions of a property |
Method | PUT |
URL | /properties/{property}/attractions |
Example | /api/properties/11111111/attractions | Access | OWNER, MANAGER |
Authorization | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9... |
---|---|
Fields | Type | Required | Description |
---|---|---|---|
property | number | yes | Property id. |
bar_nightclub | bool | no | If near of bar or nightclub. |
beach | bool | no | If near of beach. |
casino | bool | no | If near of casino. |
charterboats | bool | no | If near of charter boats. |
deep_sea_fishing | bool | no | If near of place to deep sea or fishing. |
airports | bool | no | If near of airports. |
horseback_riding | bool | no | If near of horseback or riding. |
shoopping | bool | no | If near of shoopping. |
snorkeling | bool | no | If near of snorkeling area. |
car | bool | no | If in the property offer car. |
car_desc | text | no | Description about car, only fill when car is true. |
chauffeur | bool | no | If in property offer chauffeur. |
chauffeur_desc | text | no | Description about chauffeur, only fill when chauffer is true. |
concierge | bool | no | If in property offer concierge. |
concierge_desc | text | no | Description about concierge, only fill when concierge is true. |
private_chef | bool | no | If in property offer private chef. |
private_chef_desc | text | no | Description about private chef, only fill when private_chef is true. |
staff | bool | no | If in property offer private staff. |
staff_desc | text | no | Description about staff, only fill when staff is true. |
massage | bool | no | If in property offer service of massage. |
massage_desc | text | no | Description about service of massage, only fill when staff is true. |
additional_information | text | no | If near of additional or information. |
{
"code": R111,
"message": "Success"
}
Code | Message | Cause | Possible Frontend Message [Behavior] |
---|---|---|---|
EC000 |
Internal error in API |
Internal error connecting the database | "Oops! Looks like we hit a snag. Try closing the app and reopening it." |
EC001 |
User not found |
Token user id doesn't match our records | "Sorry, We couldn't find your information!" |
EC002 |
Property not found |
Property id doesn't match our records | "Sorry, We couldn't find that property!" |
EC014 |
Property doesn't belong to the user |
The user logged in is not the property's owner | "Sorry, you do not have access to that property!" |
R000 |
Fail |
The kitchen amenities were not updated | |
R111 |
Success |
The operation was successful | [Update the kitchen amenities] |
SC006 |
User no authorization |
The token role is not valid for using the API services | "You have been logged out." - [Take the user to the login screen] |
SC014 |
Expired token |
The token has expired | "You have been logged out." - [Take the user to the login screen] |
VID112 |
Invalid input for property |
Property id is not a number | [Call the API again using a valid value for property id] |
VID184 |
Invalid input for amenity |
The attraction is not in [0, 1] | [Call the API again using a valid value for the attraction] |
VID185 |
Invalid input for amenity description |
The attraction description has more than 200 characters or it only has characters not allowed | "Please enter a valid description" |
VID235 |
Invalid input for additional_info |
Additional_info has more than 200 characters or it only has characters not allowed | "Please enter a valid text for Additional Information" |