PUT v1/games/{id}/payouts/hidden

Sets the hidden flag of the payout option

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Unique Identifier of the game that the payout option belongs to.

string

Required

Body Parameters

An object representing the payout option.

PayoutOption
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

LegendLabel

string

None.

OutcomeOverrideMessage

string

None.

ImageUrl

string

None.

HighlightedImageUrl

string

None.

AwardValue

integer

None.

MustAwardBy

integer

None.

DoNotAwardUntil

integer

None.

Distribution

integer

None.

IsDefault

boolean

None.

Hidden

boolean

None.

Sort

integer

None.

Plays

integer

None.

Previews

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "e323496f-1c6e-47a8-a3d5-b0d2ae6a4e65",
  "LegendLabel": "sample string 2",
  "OutcomeOverrideMessage": "sample string 3",
  "ImageUrl": "sample string 4",
  "HighlightedImageUrl": "sample string 5",
  "AwardValue": 6,
  "MustAwardBy": 1,
  "DoNotAwardUntil": 1,
  "Distribution": 7,
  "IsDefault": true,
  "Hidden": true,
  "Sort": 10,
  "Plays": 11,
  "Previews": 12
}

text/html

Sample:
{"Id":"e323496f-1c6e-47a8-a3d5-b0d2ae6a4e65","LegendLabel":"sample string 2","OutcomeOverrideMessage":"sample string 3","ImageUrl":"sample string 4","HighlightedImageUrl":"sample string 5","AwardValue":6,"MustAwardBy":1,"DoNotAwardUntil":1,"Distribution":7,"IsDefault":true,"Hidden":true,"Sort":10,"Plays":11,"Previews":12}

application/xml, text/xml

Sample:
<PayoutOption xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Models">
  <AwardValue>6</AwardValue>
  <Distribution>7</Distribution>
  <DoNotAwardUntil>1</DoNotAwardUntil>
  <Hidden>true</Hidden>
  <HighlightedImageUrl>sample string 5</HighlightedImageUrl>
  <Id>e323496f-1c6e-47a8-a3d5-b0d2ae6a4e65</Id>
  <ImageUrl>sample string 4</ImageUrl>
  <IsDefault>true</IsDefault>
  <LegendLabel>sample string 2</LegendLabel>
  <MustAwardBy>1</MustAwardBy>
  <OutcomeOverrideMessage>sample string 3</OutcomeOverrideMessage>
  <Plays>11</Plays>
  <Previews>12</Previews>
  <Sort>10</Sort>
</PayoutOption>

Response Information

Resource Description

A response containing the new Payout Option's unique id, or validation errors if the game type could not be created or updated.

PayoutOptionPostResponse
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Response Codes

  • 200 OK: Payout Option successfully saved.
  • 400 BadRequest: Data validation failed, see the response body for more information.
  • 401 Unauthorized:
  • 500 InternalServerError:

Response Formats

application/json, text/json

Sample:
{
  "Id": "e9b19469-65f6-4743-a96f-c21ced1f9293"
}

text/html

Sample:
{"Id":"e9b19469-65f6-4743-a96f-c21ced1f9293"}

application/xml, text/xml

Sample:
<PayoutOptionPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Responses">
  <Id>e9b19469-65f6-4743-a96f-c21ced1f9293</Id>
</PayoutOptionPostResponse>