MG+ Free Games Plus Guide
Breadcrumbs

Update the Status of an Instance

PATCH /agents/{agentCode}/players/{playerId}/freeGameInstances/{instanceGuid}

400 Bad Request

Missing InstanceGuid

{
  "code": "WrongParameter",
  "message": "The field \"InstanceGuid\" is required!"
}


Missing Player ID

{
  "code": "WrongParameter",
  "message": "The field \"PlayerId\" is required!"
}


Player ID: Max 50 Alphanumeric Characters

{
  "code": "WrongParameter",
  "message": "The field \"PlayerId\" must be a string with a maximum length of 50. Using only numbers and english alphabets!"
}


Missing OfferGuid

{
  "code": "WrongParameter",
  "message": "The field \"OfferGuid\" is required!"
}


Missing AgentCode

{
  "code": "WrongParameter",
  "message": "The field \"AgentCode\" is required!"
}


AgentCode: Max 50 Alphanumeric Characters

{
  "code": "WrongParameter",
  "message": "The field \"AgentCode\" must be a string with a maximum length of 50. Using only numbers and english alphabets!"
}


Missing OfferAssignmentStatus

{
  "code": "WrongParameter",
  "message": "The field \"OfferAssignmentStatus\" is required!"
}


Invalid OfferAssignmentStatus

{
  "code": "WrongParameter",
  "message": "The field \"OfferAssignmentStatus\" be either 0 or 1!"
}


Invalid CancelIfPartiallyConsumed

{
  "code": "WrongParameter",
  "message": "Invalid parameter CancelIfPartiallyConsumed for Reactivating"
}

Invalid AgentCode

{
  "code": "WrongParameter",
  "message": "AgentCode is not matched"
}


Invalid PlayerOfferInstance

{
  "code": "WrongParameter",
  "message": "PlayerOfferInstance is not belong to this Player"
}


Cannot Cancel

{
  "code": "WrongParameter",
  "message": "Cannot cancel because free game partially consumed"
}