Version 2021

activateBadge

Invalidates the activation link for a badge. This has the following effects:

  • If a user has not yet downloaded the badge by using the badge activation link, the badge cannot be acquired.
  • If a user has already downloaded a badge by using the badge activation link, the user can continue to use the badge.
  • In Identity Manager, the badge status changes from "Pending" to "Active."

You can use this method to implement a workflow between when a badge is created on Identity Server and when a user is able to acquire and use the badge.

Returns

If successful, the method returns the badge definition.

Method signature

public String activateBadge(String code) throws InvalidConfigException, InvalidResponseException, IOException;