POST /v1/webspaces/{id}/subdomains
POST/v1/webspaces/{id}/subdomains
Create a subdomain for a webspace
Datamodel
Deze operatie werkt op de entiteit webspace (webspace). Alle 32 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.
Request body
| Naam | Type | Beschrijving |
|---|
namevereist | string | |
documentRoot | string | |
type | string | |
redirectUrl | string | |
redirectType | integer | |
tags | string[] | |
Padparameters
| Naam | Type | Beschrijving |
|---|
idvereist | string | |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/webspaces/{id}/subdomains \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"name": "string",
"documentRoot": "/httpdocs",
"type": "subdomain",
"redirectUrl": "string",
"redirectType": 301,
"tags": []
}'
const result = await cm.webspaces.post({
"name": "string",
"documentRoot": "/httpdocs",
"type": "subdomain",
"redirectUrl": "string",
"redirectType": 301,
"tags": []
});
Antwoordcodes
| HTTP |
Betekenis |
201 |
Default Response |