Skip to content
GAMPEONCreate
New project

Hide or restore a studio or project page

POST
/v1/moderation/pages/{type}/{slug}
curl --request POST \
--url https://api.gampeon.com/v1/moderation/pages/studio/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "action": "hide", "statementOfReasons": "example" }'

With a statement of reasons (Art. 17 DSA). Owners and admins are informed, every decision is logged.

Requires the role moderator or admin.

Not available with access tokens.

type
required
string
Allowed values: studio project

studio or project

slug
required
string

Slug of the page

Media typeapplication/json
object
action
required
string
Allowed values: hide restore
statementOfReasons
required

Statement of reasons, 20 to 5000 characters. Shown to the people affected.

string
>= 20 characters <= 5000 characters

Decided

Media typeapplication/json
object
decisionId
required
string
type
required
string
slug
required
string
action
required
string

Example generated

{
"decisionId": "example",
"type": "example",
"slug": "example",
"action": "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: forbidden, 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: 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"
}

Error codes: already_hidden, not_hidden

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