Add a new location to a facility
POST/facilities/:certifyFacilityId/locations
Creates a new location record and associates it with the specified facility. Use this to register a new physical location under an existing facility; to update an existing location's attributes, use PUT /facilities/{certifyFacilityId}/locations/{certifyLocationId} instead. The facility identified by certifyFacilityId must already exist. The request body is validated against a JSON schema; a 400 is returned if validation fails. Returns HTTP 201 with a batch alias ID map (e.g. corelocation, tenantfacilitylocation, and related address IDs) plus a message field — not the full created location record; call the location's read endpoint afterwards if you need the complete record.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 500
Location successfully created and associated with facility
Invalid request body
Unauthorized - Authentication required
Forbidden - Insufficient permissions
Facility not found
Internal server error