| GET,POST | /UmbracoPromotions | Gets Promotions from the CMS. | Gets Umbraco Promotions. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Promotions | form | List<DtoUmbracoPromotion> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PromotionContentId | form | int | No | |
| PromotionId | form | string | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| PromotionStartDate | form | DateTime | No | |
| PromotionEndDate | form | DateTime | No | |
| IconUrl | form | string | No | |
| ImageUrl | form | string | No | |
| TermsAndConditionString | form | string | No | |
| LinkTitle | form | string | No | |
| LinkUrl | form | string | No | |
| IsPublic | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UmbracoPromotions HTTP/1.1
Host: ios-api.betright.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Promotions":[{"PromotionContentId":0,"PromotionId":"String","Name":"String","Description":"String","PromotionStartDate":"\/Date(-62135596800000)\/","PromotionEndDate":"\/Date(-62135596800000)\/","IconUrl":"String","ImageUrl":"String","TermsAndConditionString":"String","LinkTitle":"String","LinkUrl":"String","IsPublic":false}]}