Skip to content

Enable a custom subdomain

POST
/v1/workspaces/{workspaceId}/subdomain
curl --request POST \
--url https://shareout.site/v1/workspaces/example/subdomain \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enabled": true }'

Requires workspace admin/owner and the Teams plan.

workspaceId
required
string

Workspace ID or slug.

Media type application/json
object
enabled
boolean
Example generated
{
"enabled": true
}

Enabled

Teams plan required

Media type application/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
Example
{
"success": false
}