Save a category to your favourites
Saves a category to the currently authenticated user's list of favourite categories.
URL: | https://api.trademe.co.nz/v1/Favourites/Category.{file_format} |
---|---|
HTTP Method: | POST |
Requires Authentication? | Yes |
Permission Required: | MyTradeMeWrite: Maintain your watchlist, answer questions and post comments. |
Supported Formats: | XML, JSON |
Rate Limited? | Yes |
URL parameters
file_format | Enumeration (required) | The format of the response. | ||||
---|---|---|---|---|---|---|
|
POST Data
<SaveCategoryRequest>
Enumeration (required) |
The frequency that emails should be sent. |
|||||||||||||
|
||||||||||||||
Push | Enumeration (optional) |
The frequency that push notifications should be sent. |
||||||||||||
|
||||||||||||||
CategoryId | Integer (required) |
The ID of the category to save. This must be a leaf category. |
Returns
<SavedFavouriteResponse>
Details of the saved favourite, including the ID.
SearchId | Integer |
The ID of the saved favourite. |
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Response | String or null |
A description of the error, if the operation failed. |
|||||||||||||||
Saved | Boolean |
Indicates whether the favourite was saved. |
|||||||||||||||
FavouriteType | Enumeration |
Indicates what type of favourite was saved. |
|||||||||||||||
|