Change a marketplace item
const url = 'https://api.gampeon.com/v1/resources/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"example","description":"example","kind":"script","tags":["example"],"project":"","price":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource name
Request Bodyrequired
Section titled “Request Bodyrequired”object
Up to 10 lowercase tags (a-z, 0-9, -, max. 24 characters each).
Price in GAMPEONS. 0 = free, otherwise 10 to 1,000,000
Responses
Section titled “Responses”Updated
object
Example generated
{ "name": "example", "title": "example", "description": "example", "kind": "example", "tags": [ "example" ], "project": { "slug": "example", "title": "example" }, "price": 1}Error codes: invalid_field
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: unauthorized
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: insufficient_scope, token_not_allowed, forbidden, seller_terms_required
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: not_found, project_not_found
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Limit: 120 edits per hour per account. Error codes: rate_limited
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: payments_disabled
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}