Change your profile
const url = 'https://api.gampeon.com/v1/me';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"displayName":"example","handle":"example","bio":"example","birthMonth":"example","country":"example","links":[{"platform":"twitch","handle":"example"}]}'};
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/me \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "displayName": "example", "handle": "example", "bio": "example", "birthMonth": "example", "country": "example", "links": [ { "platform": "twitch", "handle": "example" } ] }'Changes display name, handle, bio, country or profile links. Fields you leave out stay unchanged. Accounts created before the age check add their birthMonth once; after that it can only be changed through support.
links replaces the whole list. Each entry takes the name on the platform or a link to the profile there; GAMPEON keeps only the name and builds the address itself, so links to other sites are rejected. Entries with an empty handle are dropped. Country and links appear on the public profile only from age 16.
Not available with access tokens.
Rate limit: 120 edits per hour per account.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Birth month as YYYY-MM. Minimum age 13. Self-declared, only visible to the account itself.
Profiles on other platforms, at most one per platform
object
Name on the platform or a link to the profile there. Empty removes it.
Responses
Section titled “Responses”Updated profile
object
Profiles on other platforms, at most one per platform (up to 10).
object
Name on the platform. YouTube uses @name or channel/<id>, Facebook a username or a numeric profile ID.
Profile page, built by GAMPEON from the name. Never a link the person entered.
Example
{ "links": [ { "platform": "twitch" } ]}Error codes: invalid_field, invalid_country, invalid_link
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: token_not_allowed, too_young
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: handle_taken, birth_month_set
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"}