v1

latestOpenAPI 3.0.1Apache 2.02026-07-17111176225.7 KB
User Management

add/replace credential

post/accounts/{accountname}/users/{username}/credentials

Path parameters

accountnamestring required
usernamestring required

Request body

type'password' required

The type of credential

valuestring required

The credential value (e.g. the password)

created_atstring

The timestamp of creation of the credential

Example request

{
  "created_at": "created_at",
  "type": "password",
  "value": "value"
}

Response

Add a credential, overwritting if already exists

usernamestring required

The username to authenticate with

type'native' | 'internal' | 'external'

The user's type

sourcestring

If the user is external, this is the source that the user was initialized from. All other user types have this set to null

created_atstring date-time

The timestampt the user record was created

last_updatedstring date-time

The timestamp of the last update to this record

Example response

{
  "last_updated": "2000-01-23T04:56:07.000+00:00",
  "created_at": "2000-01-23T04:56:07.000+00:00",
  "source": "source",
  "type": "native",
  "username": "username"
}