s1 API Host

<back to all web services

CreateNewsItemRequest

The following routes are available for this service:
POST, OPTIONS/api/admin/newsAdds a new news item for given customer groupsUser has to be authenticated.
Parameters:
NameParameterData TypeRequiredDescription
CreateNewsItemRequestbodyCreateNewsItemRequestYesGive the required values in the body to add a news item.

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/oneway/CreateNewsItemRequest HTTP/1.1 
Host: api-beta.ghs-automotive.nl 
Content-Type: application/json
Content-Length: length

{"imageBase64EncodedFile":"String","imageFileName":"String","content":"String","title":"String","expiryDate":"\/Date(-62135596800000-0000)\/","publishDate":"\/Date(-62135596800000-0000)\/"}