UserProfile

Assigns a badge to a user

Calling this operation will assign a badge to a user on the site (scope) present in the authentication token. The payload in this request requires the unique id of the user from a third party authentication provider, in combination with the type code of the provider. See below for more details Badges must exist before being assigned to users.

put/users/profile/badge

Request

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

Request body

third_party_user_idstring

The third party authentication provider id for the user.

third_party_typestring

The type of the third party authentication provider. Please contact Viafoura support for a list of supported providers.

labelstring required

The unique identifier of an existing badge

Example request

{
  "label": "subscriber",
  "third_party_user_id": "third_party_user_id",
  "third_party_type": "twitter"
}

Response

The badge has been assigned to the user.

Changes

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