POST api/eNews/Add
Request Information
URI Parameters
None.
Body Parameters
EnewsAddDto| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
Required Matching regular expression pattern: ^[a-zA-Z0-9_\.-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$ |
||
| Title | string |
None. |
|
| WebSiteID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"email": "sample string 1",
"title": "sample string 2",
"webSiteID": "4b734e78-f724-4b5c-9544-2682a958c429"
}
application/xml, text/xml
Sample:
<EnewsAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs"> <Email>sample string 1</Email> <Title>sample string 2</Title> <WebSiteID>4b734e78-f724-4b5c-9544-2682a958c429</WebSiteID> </EnewsAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"Email":"sample string 1","Title":"sample string 2","WebSiteID":"4b734e78-f724-4b5c-9544-2682a958c429"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.