コンテンツにスキップ

クリアをまとめて登録

POST
/rest/v1/addClearsBatch
curl --request POST \
--url https://game.retrogather.com/rest/v1/addClearsBatch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "items": [ { "gameId": 1, "clearDate": "2026-04-15", "playTime": 1, "memo": "example", "rating": 1, "consoleId": "example", "addToLibrary": true } ], "dryRun": true }'

Play records / クリア一括登録: register up to 100 cleared games in one call, e.g. a list of games the user has finished. Owned games only: rows not in the library are skipped as not_in_library, unless addToLibrary: true adds the game to the library (no purchase details; moved from the wishlist) with the clear. Set it only when the user says they own the game (needs library:write). Each row creates one clear log: clearDate (YYYY-MM-DD, ask the user; do not assume today), playTime in minutes (2 hours = 120; ask when unknown), memo (the user’s impressions). rating is optional; omitted rows keep the current rating. A PLANNED, PLAYING, PAUSED or DROPPED record becomes COMPLETED (same playId); already cleared games are skipped. Show the list to the user and get their OK first; dryRun: true previews each row without saving. If the plan limit would be exceeded, nothing is registered. For one game, addPlayRecord with status COMPLETED does the same.

Plans: FREE / LIGHT / PREMIUM. Scopes: play:write.

Media typeapplication/json
object
items
required
Array<object>
>= 1 items <= 100 items
object
gameId
required
integer
clearDate
required

Clear date, YYYY-MM-DD (JST), today or earlier.

string format: date
playTime
required

Minutes for the clear log (2 hours = 120).

integer
>= 1
memo
required

Clear log text (the user’s impressions).

string
rating

1 (lowest) to 5 (highest).

integer
>= 1 <= 5
consoleId

ConsoleId from getConsoles.

string
addToLibrary

True: if the game is not in the library, add it (purchase details empty) together with the clear. Only when the user says they own it. Requires library:write.

boolean
dryRun

True: report what each row would do (created / converted / skipped, added to the library, plan limits) without saving.

boolean
Examplegenerated
{
"items": [
{
"gameId": 1,
"clearDate": "2026-04-15",
"playTime": 1,
"memo": "example",
"rating": 1,
"consoleId": "example",
"addToLibrary": true
}
],
"dryRun": true
}

Tool result JSON (no MCP envelope). Delete previews also return 200 with confirmToken.

Media typeapplication/json
Any of:
object
items
required
Array<object>
object
index
required
integer
gameId
required
integer
result
required
string
Allowed values: created converted skipped
playId
string
playLogId
string
previousStatus
string
Allowed values: PLANNED PLAYING PAUSED COMPLETED DROPPED
reason
string
Allowed values: already_completed not_in_library not_found play_log_limit
addedToLibrary
boolean
fromWishlist
boolean
key
additional properties
any
created
required
integer
converted
required
integer
skipped
required
integer
addedToLibrary
integer
dryRun
boolean
limit
object
max
required
integer
current
required
integer
requested
required
integer
key
additional properties
any
libraryLimit
object
max
required
integer
current
required
integer
requested
required
integer
key
additional properties
any
hint
string
key
additional properties
any
Example
{
"items": [
{
"result": "created",
"previousStatus": "PLANNED",
"reason": "already_completed"
}
]
}

Invalid_input (arguments, broken JSON body)

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}

Missing or invalid API key

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}

Insufficient_scope, plan_required, or access_suspended

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}

Target or tool not found

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}

Already_exists or revision_conflict (stale revision: re-read, then retry)

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}

Burst or daily quota exceeded. See resetAt.

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}
Retry-After
integer

Seconds

Unexpected server failure. Retrying the same call will not help.

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}

Temporary failure or maintenance. Retry after Retry-After.

Media typeapplication/json

Entry errors (auth, routing, quota) use error; tool errors use code and message. Check retryable when present.

object
error
string
code
string
message
string
retryable
boolean
retryAfterSec
integer
requestId
string
resetAt
string
remaining
integer
scopes
Array<string>
upgradeUrl
string
key
additional properties
any
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"retryable": true,
"retryAfterSec": 1,
"requestId": "example",
"resetAt": "example",
"remaining": 1,
"scopes": [
"example"
],
"upgradeUrl": "example"
}
Retry-After
integer

Seconds