younifyd
Menu

Create a new user

Create a new user

POST/v1/users/db/{user_id}

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Create a new user action (under users).
  3. Fill in the fields below, then reference the result from later steps as {{createANewUser.response.data}}.

Request

Path parameters

user_idstringrequired

The name of the user.

Request body

Enter the body as JSON in the step's Body field.

importboolean

EXPERIMENTAL, DONT USE. THIS WILL BE REMOVED AGAIN. - import api key from static user

Default false

createTimestring (date-time)

EXPERIMENTAL, DONT USE. THIS WILL BE REMOVED AGAIN. - set the given time as creation time

expiresAtstring (date-time)

Date and time in ISO 8601 format at which the user's API key stops authenticating, stored in UTC with millisecond precision. It must be in the future. Setting it needs a Weaviate license key on the node, else the request answers 403. On a node with a license key, a request that also sets `import` to true answers 422. Absent means the key never expires.

json
{
  "import": false,
  "createTime": "2025-01-01T00:00:00Z",
  "expiresAt": "2025-01-01T00:00:00Z"
}

Response

Returns 201 with a any. Read it in later steps with {{createANewUser.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.