- Overview
- Authentication
- Game
- Ticket
- Game Account
- Report
- Game Service
Update game by ID
Developing
Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
PUT
https://dev.your-api-server.com
Last modified:2024-04-09 14:32:20
OperationId:update-game-program
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
game-id
string
required
Header Params
Content-Type
string
required
Default:
application/json
Body Params application/json
status
enum<string>
optional
Allowed values:
ACTIVEINACTIVE
name
string
optional
availableTime
object
optional
startDate
string <date-time>
optional
endDate
string <date-time>
optional
timePeriods
string
required
Example:
BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;UNTIL=20221001T000000;BYDAY=TU\nEND:VEVENT
terminology
object
optional
one
string
required
>= 1 characters
other
string
required
>= 1 characters
Example
{
"status": "ACTIVE",
"name": "string",
"availableTime": {
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"timePeriods": "BEGIN:VEVENT\\nDTSTART:20220816T160000\\nDURATION:PT2H\\nRRULE:FREQ=WEEKLY;UNTIL=20221001T000000;BYDAY=TU\\nEND:VEVENT"
},
"terminology": {
"one": "string",
"other": "string"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://dev.your-api-server.com/v1/games/' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "ACTIVE",
"name": "string",
"availableTime": {
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"timePeriods": "BEGIN:VEVENT\\nDTSTART:20220816T160000\\nDURATION:PT2H\\nRRULE:FREQ=WEEKLY;UNTIL=20221001T000000;BYDAY=TU\\nEND:VEVENT"
},
"terminology": {
"one": "string",
"other": "string"
}
}'
Responses
🟢200OK
text/plain
Body
id
string <uuid>
read-onlyrequired
<= 36 characters
status
enum<string>
optional
Allowed values:
ACTIVEINACTIVE
name
string
optional
availableTime
object
optional
startDate
string <date-time>
optional
endDate
string <date-time>
optional
timePeriods
string
required
Example:
BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;UNTIL=20221001T000000;BYDAY=TU\nEND:VEVENT
terminology
object
optional
one
string
required
>= 1 characters
other
string
required
>= 1 characters
createdAt
string <date-time>
read-onlyoptional
updatedAt
string <date-time>
read-onlyoptional
Modified at 2024-04-09 14:32:20