Replace the amenity set mapped to a property space
POST/api/v1/pms/property-amenities/spaces/:spaceId
Deletes every existing mapping for the given space, then inserts one row per distinct id in the request body. The space and every amenity id must exist. Passing [] clears all mappings for the space. Runs in a single transaction.
Request
Responses
- 200
- 404
New mapping set applied; returns the resulting amenities.
Property space or one of the amenity ids does not exist.