コンテンツにスキップ

Create or update content entries

POST
/v1/content

Create or upsert content entries in bulk (up to 500 per request). Deduplicates by (contentType, contentId) — last entry wins. Requires X-Project-Id header.

X-Project-Id
required
string format: uuid

Project UUID (sent as a header for endpoints that don’t include it in the path).

object
entries
required
Array<object>
<= 500 items
object
contentType
required

Type category (e.g., weapon, map).

string
<= 100 characters
contentId
required

Unique identifier within the content type.

string
<= 255 characters
displayName
required

Human-readable display name.

string
<= 255 characters
description
string | null
<= 2000 characters
category
string | null
<= 255 characters
metadata

Arbitrary metadata (max 10 KB serialized).

object | null

Content entries created/updated.

object
success
boolean
data
object
imported

Number of entries imported.

integer

Invalid request parameters or body.

object
success
boolean
error

Human-readable error message.

string

Missing or invalid API key.

object
success
boolean
error

Human-readable error message.

string

Rate limit exceeded.

object
success
boolean
error

Human-readable error message.

string
X-RateLimit-Limit
integer

Maximum number of requests allowed per hour.

X-RateLimit-Remaining
integer

Number of requests remaining in the current window.

X-RateLimit-Reset
integer

Unix timestamp when the rate limit window resets.