Userinfo

Remove the person's banner

DELETE
/api/v1/userinfo/profile/banner/

Remove the banner. Needs profile:edit.

Authorization

oauth2
AuthorizationBearer <token>

An OAuth2 access token issued through the authorization flow. Acts on a user's behalf, and reads only what that user's granted scopes disclose. A token whose user has since been deactivated or soft-deleted is rejected.

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

Error codes

Every error response carries one of these in its code field. Branch on the code, never on the detail text.

Statuscode
400profile_field_hidden
401not_authenticated, authentication_failed
403permission_denied
404not_found
429rate_limited

Before you run the sample

  • Replace ACCESS_TOKEN with your user's access token.
curl -X DELETE "https://example.com/api/v1/userinfo/profile/banner/"
{  "avatar_url": "string",  "banner_url": "string",  "date_of_birth": "2019-08-24",  "display_name": "string",  "family_name": "string",  "fields": {    "property1": null,    "property2": null  },  "form": {    "core": {      "property1": "hidden",      "property2": "hidden"    },    "custom": [      {        "class": "shared",        "field_type": "short_text",        "help_text": "string",        "key": "string",        "label": "string",        "max_length": 0,        "options": [          "string"        ],        "placeholder": "string",        "required": true,        "user_editable": true,        "writable": true      }    ]  },  "gender": "string",  "given_name": "string",  "locale": "string",  "middle_name": "string",  "nickname": "string",  "private_fields": {    "property1": null,    "property2": null  },  "sub": "string",  "website": "string"}