Create a marketplace item
const url = 'https://api.gampeon.com/v1/resources';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","title":"example","description":"example","kind":"script","tags":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.gampeon.com/v1/resources \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "title": "example", "description": "example", "kind": "script", "tags": [ "example" ] }'Creates the entry. It becomes visible once a version is published. New items are free; set a price in GAMPEONS later with PATCH.
Access tokens: scope marketplace:write.
Rate limit: 20 per hour per account.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Unique name, a-z, 0-9, _, -
Default: the name
Default: script
Up to 10 lowercase tags (a-z, 0-9, -, max. 24 characters each).
Responses
Section titled “Responses”Created
object
Example generated
{ "name": "example", "title": "example", "description": "example", "kind": "example", "tags": [ "example" ]}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
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: name_taken
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: 20 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"}