API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

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

NaamTypeBeschrijving
usernamevereiststring
passwordvereiststring
privilegesstring[]
tagsstring[]

Padparameters

NaamTypeBeschrijving
idvereiststring
dbIdvereiststring

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

Zoeken