Workers
Subdomain
Subdomain endpoint reference.
Get
Returns a Workers subdomain for an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. |
php
$response = $client->workers()->subdomain()->get('ACCOUNT_ID');
Create
Creates a Workers subdomain for an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
subdomain | string | Yes | Subdomain. |
php
$response = $client->workers()->subdomain()->create('ACCOUNT_ID', 'SUBDOMAIN');

