Name | Get Owner New |
---|---|
Description | Get a news related to the owner |
Method | PUT |
URL | /owner/news/{news} |
Example | /api/owner/news/31 | Access | OWNER, MANAGER |
Authorization | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9... |
---|---|
Fields | Type | Required | Description |
---|---|---|---|
news | number | yes | Id of the news |
{
"id": 31,
"title": "HomeEscape Introduces New Options for Holding the Security Deposit",
"text": "Dear Owners, If you chose to have HomeEscape hold your traveler...",
"date_created": "2017-02-01T13:52:05-0500",
"date_posted": "2017-02-01T13:52:05-0500",
"unread": 0
}
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!" |
EC037 |
News no found |
News id doesn't match our records | "Sorry, We couldn't find that news!" |
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] |
VID243 |
Invalid input for news |
News id doesn't have only numbers | "Sorry, We couldn't find that news!" |