POST /v1/webspaces/{id}/ftp-users
POST/v1/webspaces/{id}/ftp-users
Create an FTP user 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 |
|---|
usernamevereist | string | |
passwordvereist | string | |
homeDir | string | |
permissions | object | |
quotaMb | integer | |
tags | string[] | |
Padparameters
| Naam | Type | Beschrijving |
|---|
idvereist | string | |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/webspaces/{id}/ftp-users \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"username": "string",
"password": "string",
"homeDir": "/",
"permissions": null,
"quotaMb": 0,
"tags": []
}'
const result = await cm.webspaces.post({
"username": "string",
"password": "string",
"homeDir": "/",
"permissions": null,
"quotaMb": 0,
"tags": []
});
Antwoordcodes
| HTTP |
Betekenis |
201 |
Default Response |