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": "1676433c-a263-4277-884d-207545543ce1",
  "Role": "sample string 2",
  "Password": "sample string 3",
  "Enabled": true
}