younifyd
Menu

Set a user's expiration

Set a user's expiration

PUT/v1/users/db/{user_id}/expiration

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Set a user's expiration action (under users).
  3. Fill in the fields below, then reference the result from later steps as {{setAUserSExpiration.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.

expiresAtstring (date-time)

Date and time in ISO 8601 format, stored in UTC with millisecond precision, at which the user's API key stops authenticating. It must be in the future.

neverExpiresboolean

True clears the user's expiry, so the API key never expires. False answers 422.

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

Response

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

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