API v1 POST v1 userinformation self update - SpaceFlow/Backend GitHub Wiki
POST /v1/userinformation/self/update
Updates your profile
Required scope: update_user_information
Authorisation needed: yup
Parameters:
Type | name | description | required |
---|---|---|---|
POST Body | bio | Update your Bio (Max: 255) | Nope |
POST Body | screen_name | Update your Screen Name (Max: 25) | Nope |
POST Body | profile_image_url | Update your profile image url. Note: The image has to be located at https://sharepic.moe or https://cdn.spaceflow.io | Nope |
Only supply the parameters you wish to edit.
Potential Errors:
Error Code | HTTP Status Code | Description |
---|---|---|
APP_ID_NOT_FOUND | 400 | The API Server couldn't find the to the token associated application id |
REQUIRED_SCOPE_NOT_SET | 400 | The token wasn't created with the scope required for this endpoint |
TOKEN_NOT_FOUND | 400 | An invalid token was supplied in the authorisation header |
AUTHORISATION_HEADER_NOT_PRESENT | 400 | should be self-explanatory |
Example:
Request: POST https://api.spaceflow.io/v1/userinformation/self/update POST Body (x-www-form-urlencoded): bio=ayy%20lmao&screen_name=cool&20guy
Returns:
{
"updated": {
"bio": "hey check out my new biography"
},
"error": null
}