POST v2/api/users/{id}/api-credentials

Creates a new API credential for the specified user.

Request Information

Parameters

NameDescriptionAdditional information
id
The identifier of the specified user.

Define this parameter in the request URI.

Response Information

The newly created API Credential is returned. This endpoint can be called any number of times by/for a B2BGenerator to associate one or more credentials with the user. If it is called more than once by/for any B2CGenerator or Validator the single credential that these users can have is "cycled". If it us called by/for an Administrator, 400 is returned because they can have no API credentials.

Response body formats

application/json, text/json

Sample:
{
  "Id": "95ec5a25-b922-4a89-8cdc-06f65ebfdb42",
  "Role": "sample string 2",
  "Password": "sample string 3",
  "Enabled": true
}