API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola

POST /v1/webspaces/{id}/databases/{dbId}/users

POST/v1/webspaces/{id}/databases/{dbId}/users

Create a database user

Modelo de datos

Esta operación trabaja sobre la entidad webspace (webspace). Los 32 campos (tipo, validación, obligatoriedad y relaciones) figuran en la referencia del esquema.

Cuerpo de la solicitud

NombreTipoDescripción
usernameobligatoriostring
passwordobligatoriostring
privilegesstring[]
tagsstring[]

Parámetros de ruta

NombreTipoDescripción
idobligatoriostring
dbIdobligatoriostring

Ejemplo

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": []
});

Códigos de respuesta

HTTP Significado
201 Default Response

Búsqueda