PATCH
/
workspaces
/
{idOrSlug}
PHP
declare(strict_types=1);

require 'vendor/autoload.php';

use Dub;

$sdk = Dub\Dub::builder()
    ->setSecurity(
        'DUB_API_KEY'
    )
    ->build();



$response = $sdk->workspaces->update(
    idOrSlug: '<value>',
    requestBody: $requestBody

);

if ($response->workspaceSchema !== null) {
    // handle response
}
{
  "id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "logo": null,
  "inviteCode": "<string>",
  "plan": "free",
  "stripeId": "<string>",
  "billingCycleStart": 123,
  "paymentFailedAt": "<string>",
  "stripeConnectId": "<string>",
  "totalLinks": 123,
  "usage": 123,
  "usageLimit": 123,
  "linksUsage": 123,
  "linksLimit": 123,
  "payoutsUsage": 123,
  "payoutsLimit": 123,
  "payoutFee": 123,
  "domainsLimit": 123,
  "tagsLimit": 123,
  "foldersUsage": 123,
  "foldersLimit": 123,
  "usersLimit": 123,
  "aiUsage": 123,
  "aiLimit": 123,
  "conversionEnabled": true,
  "dotLinkClaimed": true,
  "partnersEnabled": true,
  "createdAt": "<string>",
  "users": [
    {
      "role": "owner",
      "defaultFolderId": "<string>"
    }
  ],
  "domains": [
    {
      "slug": "acme.com",
      "primary": false,
      "verified": false
    }
  ],
  "flags": {},
  "store": {},
  "allowedHostnames": [
    "dub.sh"
  ]
}

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

Response

200
application/json

The updated workspace.

The response is of type object.