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

location

ID del esquema
location
Colección
locations
Permisos
  • Leerlocation_view
  • Crearlocation_create
  • Modificarlocation_edit
  • Eliminarlocation_delete

Campos

location

locations4 permisos
namestringobligatorio
1–200 caracteres
locationTypestringobligatorio
BUILDINGFLOORROOMZONEWORKSTATIONPARKINGRACK
parentIduuidopcional

Parent location for hierarchy (Building > Floor > Room > Workstation)

Valor por defecto: nulladmite null
pathuuid[]opcional

Materialized path for fast hierarchy queries

Valor por defecto: []solo lectura
sortOrderintegeropcional
≥ 0Valor por defecto: 0
partyIduuidopcional

Party this location belongs to (for customer site planning)

Valor por defecto: nulladmite null
partyAddressIduuidopcional

Specific address/site of the party

Valor por defecto: nulladmite null
addressobjectopcional
Valor por defecto: nulladmite null
floorPlanImageUrlstringopcional

SVG or image URL for floor plan

Valor por defecto: nulladmite null
capacityintegeropcional

Person capacity

≥ 0Valor por defecto: nulladmite null
roomTypestringopcional
OFFICESERVER_ROOMMEETING_ROOMWORKSHOPSTORAGERECEPTIONKITCHENWCOTHERnull
Valor por defecto: nulladmite null
microsoftRoomEmailemailopcional

SMTP address of the Microsoft 365 room mailbox of this room (ADR 1085), lower-case. When set, appointments booking the room invite it in Outlook as a resource attendee, and inbound Outlook resource attendees with this address link the room. Null = not connected. Protected: generic writes drop it; set via PUT /locations/:id/room-mailbox/email (verified tenant domain) or by connecting the room account (room/equipment mailbox).

máx. 320 caracteresPatrónValor por defecto: nullsolo lecturaadmite null
workstationTypestringopcional
STANDARDSTANDINGHOT_DESKPHONE_BOOTHnull
Valor por defecto: nulladmite null
isBookablebooleanopcional
Valor por defecto: false
assignedToUserIduuidopcional

Permanently assigned user (not a hot desk)

Valor por defecto: nulladmite null
positionXnumberopcional

X position on floor plan (0-100%)

0 – 100Valor por defecto: nulladmite null
positionYnumberopcional

Y position on floor plan (0-100%)

0 – 100Valor por defecto: nulladmite null
floorPlanLocationIduuidopcional

ID of the FLOOR/ROOM whose floor-plan this workstation is placed on. Decouples position from hierarchy: positionX/Y belong to ONE specific plan, so a workstation under Room can be placed on the parent Floor plan without leaking the pin into the Room plan.

Valor por defecto: nulladmite null
rackVendorstringopcional

Rack manufacturer/vendor

máx. 200 caracteresValor por defecto: nulladmite null
rackModelstringopcional

Rack model name

máx. 200 caracteresValor por defecto: nulladmite null
rackDepthMmintegeropcional

Rack depth in millimeters

≥ 0Valor por defecto: nulladmite null
maxWeightKgnumberopcional

Maximum load capacity in kg

≥ 0Valor por defecto: nulladmite null
powerCircuitsintegeropcional

Number of power circuits/feeds

≥ 0Valor por defecto: nulladmite null
ipRangesstring[]opcional

Public egress IPs of this site, as CIDR (192.0.2.0/24, 2001:db8::/32) or bare address. Used to detect which site a user is working from — a hint for defaults only, NEVER an authorization input. Not exposed by /print-target/resolve.

Valor por defecto: []
defaultPrintTargetobjectopcional

Label printer used by default for users detected at this site (ADR 0370)

Valor por defecto: nulladmite null
printTargetsByTypeobjectopcional

Default printer per print type for users detected at this site. A print type without an entry falls back to defaultPrintTarget.

Valor por defecto: nulladmite null
equipmentstring[]opcional

Equipment at this location

Valor por defecto: []
tagsstring[]opcional
Valor por defecto: []
isActivebooleanopcional
Valor por defecto: true
notesstringopcional
máx. 2000 caracteresValor por defecto: nulladmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/locations — Lista, paginada y filtrable
  • GET /api/v1/locations/<id> — Una entidad
  • POST /api/v1/locations — Crear
  • PATCH /api/v1/locations/<id> — Actualización parcial
  • DELETE /api/v1/locations/<id> — Eliminación lógica
  • GET /api/v1/locations/<id>/timeline — Auditoría y actividades

Búsqueda