Profile

Creates or updates a badge

Calling this operation will create or update a badge for the site (scope) present in the authentication token. The payload in this request requires a label that acts as the key for the created badge. If the label already exists, the remaining badge information will be updated, otherwise a new badge will be created. Badges must exist before being assigned to users.

put/profile/badge

Request

  • Base URL
    https://auth.viafoura.co
  • URL
    https://auth.viafoura.co/profile/badge
  • Auth
    • HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://auth.viafoura.io/authorize_client

Request body

labelstring required

The unique identifier for the badge being created or updated.

descriptionstring required

The textual description of the badge, as seen by end users.

Example request

{
  "label": "subscriber",
  "description": "Users with active subscriptions."
}

Response

The badge has been created or updated.

Changes

No recorded changes to this operation across all 1 revision of this API.