POST /v1/webspaces/{id}/databases/{dbId}/users
POST/v1/webspaces/{id}/databases/{dbId}/users
Create a database user
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 | |
privileges | string[] | |
tags | string[] | |
Padparameters
| Naam | Type | Beschrijving |
|---|
idvereist | string | |
dbIdvereist | string | |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/webspaces/{id}/databases/{dbId}/users \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"username": "string",
"password": "string",
"privileges": [
"ALL"
],
"tags": []
}'
const result = await cm.webspaces.post({
"username": "string",
"password": "string",
"privileges": [
"ALL"
],
"tags": []
});
Antwoordcodes
| HTTP |
Betekenis |
201 |
Default Response |