Documentation

UpdateRandomResultTables

Updates the random drop table configuration for the title

Request Details

This operation is additive. Tables with TableId values not currently defined will be added, while those with TableId values matching Tables currently in the catalog will be overwritten with the given values.

UpdateRandomResultTablesRequest
Request Properties
CatalogVersion String

which catalog is being updated. If null, update the current default catalog version

Tables List<RandomResultTable>

array of random result tables to make available (Note: specifying an existing TableId will result in overwriting that table, while any others will be added to the available set)

POST https://{{TitleID}}.playfabapi.com/Admin/UpdateRandomResultTables
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "Tables": [
    {
      "TableId": "DropTable 1",
      "Nodes": [
        {
          "ResultItemType": "ItemId",
          "ResultItem": "Gold Crown 1",
          "Weight": 20
        },
        {
          "ResultItemType": "ItemId",
          "ResultItem": "Magic Sword 3",
          "Weight": 50
        },
        {
          "ResultItemType": "ItemId",
          "ResultItem": "Clear Shield 3",
          "Weight": 70
        }
      ]
    }
  ]
}
        

Response Details

UpdateRandomResultTablesResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SecretKey

Possible Error Codes

Name Code
InvalidDropTable 1201
InvalidJSONContent 1200