Skip to main content
POST
/
admin
/
users
/
{userId}
/
subscription
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe",
  "roles": [
    "user",
    "admin"
  ],
  "subscription": "pro",
  "subscriptionStatus": "active",
  "createdAt": "2025-01-01T00:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

ID of the user to update

Body

application/json

New subscription details

subscription
enum<string>
required
Available options:
free,
pro,
enterprise
Example:

"enterprise"

Response

User subscription updated successfully

id
string
required
Example:

"123e4567-e89b-12d3-a456-426614174000"

email
string
required
firstName
string
required
Example:

"John"

lastName
string
required
Example:

"Doe"

roles
string[]
required
Example:
["user", "admin"]
subscription
enum<string>
required
Available options:
free,
pro,
enterprise
Example:

"pro"

subscriptionStatus
string
required
Example:

"active"

createdAt
string<date-time>
required
Example:

"2025-01-01T00:00:00.000Z"