Documentation

AddNews

Adds a new news item to the title's news feed

Request Details

AddNewsRequest
Request Properties
Body (required) String

Body text of the news

Timestamp DateTime

Time this news was published. If not set, defaults to now.

Title (required) String

Title (headline) of the news item

POST https://{{TitleID}}.playfabapi.com/Admin/AddNews
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "Timestamp": "2014-04-06T00:00:00Z",
  "Title": "News of the Day",
  "Body": "We have a new object to buy!"
}
        

Response Details

AddNewsResult
Result Properties
NewsId String

Unique id of the new news item

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "NewsId": "74623b12-6c80-ee4b-7c3b-58e638aa62bd"
  }
}

Authentication

SecretKey

Possible Error Codes

Name Code
TitleNewsItemCountLimitExceeded 1231