Skip to content
GAMPEONCreate
New project

Create a marketplace item

POST
/v1/resources
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.

Media typeapplication/json
object
name
required

Unique name, a-z, 0-9, _, -

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

Default: the name

string
<= 80 characters
description
string
<= 2000 characters
kind

Default: script

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

Created

Media typeapplication/json
object
name
required
string
title
required
string
description
required
string
kind
required
string
tags
required
Array<string>

Example generated

{
"name": "example",
"title": "example",
"description": "example",
"kind": "example",
"tags": [
"example"
]
}

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

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: name_taken

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: 20 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"
}

Report a problem with this pageOther ways to give feedback