Skip to content
GAMPEONCreate
New project

Change a marketplace item

PATCH
/v1/resources/{name}
curl --request PATCH \
--url https://api.gampeon.com/v1/resources/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "title": "example", "description": "example", "kind": "script", "tags": [ "example" ], "project": "", "price": 1 }'

Only the owner. Fields you leave out stay unchanged. A price above 0 requires the seller terms (POST /v1/wallet/seller-terms) and an active GAMPEONS mode.

Access tokens: scope marketplace:write, without price.

Rate limit: 120 edits per hour per account.

name
required
string
/^[a-z0-9][a-z0-9_\-]{1,47}$/

Resource name

Media typeapplication/json
object
title
string
>= 1 characters <= 80 characters
description
string
<= 2000 characters
kind
string
Allowed values: script vehicle map prop clothing gamemode tool
tags

Up to 10 lowercase tags (a-z, 0-9, -, max. 24 characters each).

Array<string>
<= 10 items
project
One of:
string
/^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$/
price

Price in GAMPEONS. 0 = free, otherwise 10 to 1,000,000

integer
<= 1000000

Updated

Media typeapplication/json
object
name
required
string
title
required
string
description
required
string
kind
required
string
tags
required
Array<string>
project
required
One of:
object
slug
required
string
title
required
string
price
required
integer

Example generated

{
"name": "example",
"title": "example",
"description": "example",
"kind": "example",
"tags": [
"example"
],
"project": {
"slug": "example",
"title": "example"
},
"price": 1
}

Error codes: invalid_field

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: unauthorized

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: insufficient_scope, token_not_allowed, forbidden, seller_terms_required

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: not_found, project_not_found

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Limit: 120 edits per hour per account. Error codes: rate_limited

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: payments_disabled

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback