Basic-auth credentials

Create a new Basic-auth credential associated with a Consumer

Create a new Basic-auth credential associated with a Consumer

post/{workspace}/consumers/{ConsumerIdForNestedEntities}/basic-auth

Path parameters

ConsumerIdForNestedEntitiesstring required

Consumer ID for nested entities

workspacestring required
Example:team-payments

The name of the workspace

Request body

created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable

A string representing a UUID (universally unique identifier).

passwordstring required
tagsstring[] nullable

A set of strings representing tags.

usernamestring required

Example request

{
  "id": "b2f34145-0343-41a4-9602-4c69dec2f269",
  "password": "hashedsoopersecretvalue",
  "username": "darius"
}

Response

Successfully created Basic-auth credential

created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable

A string representing a UUID (universally unique identifier).

passwordstring required
tagsstring[] nullable

A set of strings representing tags.

usernamestring required

Example response

{
  "consumer": {
    "id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
  },
  "id": "b2f34145-0343-41a4-9602-4c69dec2f269",
  "password": "hashedsoopersecretvalue",
  "username": "darius"
}

Changes

Changed in 2 of the 11 revisions of this API.12

  • 65f3141f166211See the full diff
    • the response required property password became not write-only for the status 201

      response-required-property-became-not-write-only

    • the request required property password became not write-only

      request-required-property-became-not-write-only

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

Of the 11 revisions, 1 has no diff computed.