API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

Create location

POST/v1/locations

Create a new location in the active tenant.

Datamodel

Deze operatie werkt op de entiteit location (location). Alle 28 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

  • Verplichte velden: name, locationType
  • Door de server beheerd: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, path — deze velden worden door het platform toegekend; in de request worden ze genegeerd.

Voorbeeld

curl -X POST https://api.codemeta-os.de/v1/locations \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.locations.post();

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken