PATCH
/
workspaces
/
{idOrSlug}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

idOrSlug
string
required

The ID or slug of the workspace to update.

Body

application/json
conversionEnabled
boolean
name
string
Required string length: 1 - 32
slug
string
Required string length: 3 - 48

Response

200 - application/json
aiLimit
number
required

The AI limit of the workspace.

aiUsage
number
required

The AI usage of the workspace.

billingCycleStart
number
required

The date and time when the billing cycle starts for the workspace.

conversionEnabled
boolean
required

Whether the workspace has conversion tracking enabled automatically for new links (d.to/conversions).

createdAt
string
required

The date and time when the workspace was created.

domains
object[]
required

The domains of the workspace.

domainsLimit
number
required

The domains limit of the workspace.

Whether the workspace has claimed a free .link domain. (dub.link/free)

id
string
required

The unique ID of the workspace.

inviteCode
string | null
required

The invite code of the workspace.

The links limit of the workspace.

The links usage of the workspace.

The logo of the workspace.

name
string
required

The name of the workspace.

partnersEnabled
boolean
required

Whether the workspace has Dub Partners enabled.

paymentFailedAt
string | null
required

The date and time when the payment failed for the workspace.

payoutMethodId
string | null
required

[BETA – Dub Partners]: The ID of the payment method for partner payouts.

plan
enum<string>
required

The plan of the workspace.

Available options:
free,
pro,
business,
business plus,
business extra,
business max,
enterprise
salesLimit
number
required

The limit of tracked revenue in the current billing cycle (in cents).

salesUsage
number
required

The dollar amount of tracked revenue in the current billing cycle (in cents).

slug
string
required

The slug of the workspace.

store
object | null
required

The miscellaneous key-value store of the workspace.

stripeConnectId
string | null
required

The Stripe Connect ID of the workspace.

stripeId
string | null
required

The Stripe ID of the workspace.

tagsLimit
number
required

The tags limit of the workspace.

usage
number
required

The usage of the workspace.

usageLimit
number
required

The usage limit of the workspace.

users
object[]
required

The role of the authenticated user in the workspace.

usersLimit
number
required

The users limit of the workspace.

flags
object

The feature flags of the workspace, indicating which features are enabled.