Skip to main content
POST
Update user subscription

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
Example:

"pro"

Response

User subscription updated successfully

id
string
required
Example:

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

email
string
required
Example:

"user@example.com"

firstName
string
required
Example:

"John"

lastName
string
required
Example:

"Doe"

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

"pro"

subscriptionStatus
string
required
Example:

"active"

createdAt
string<date-time>
required
Example:

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