Spaces

Replace the amenities and equipment

Fully REPLACES the two lists of the space: the amenities offered with it (wifi, 24/7 access, parking) and the physical equipment delivered with it (projector, whiteboard, sound).

PUT
/api/v1/spaces/{spaceId}/amenities

Request examples

curl https://app.filmo.io/api/v1/spaces/spac_8f2a1c/amenities \
  --request PUT \
  --header "Authorization: Bearer $FILMO_API_KEY" \
  --header "Idempotency-Key: $(uuidgen 2>/dev/null || cat /proc/sys/kernel/random/uuid)" \
  --header 'Content-Type: application/json' \
  --data '{
  "commodities": [
    "Wifi",
    "Acceso 24/7",
    "Parking",
    "Aseos"
  ],
  "amenities": [
    "Proyector",
    "Pizarra",
    "Equipo de sonido"
  ]
}'
{
  "data": {
    "id": "space_9f3a2b",
    "name": "Example space",
    "internalReference": "2026-0001",
    "isWarehouse": true,
    "collectionId": "collection_9f3a2b",
    "collectionName": "Example collection name",
    "building": "Example building",
    "floor": 1,
    "location": {
      "address": "Example address",
      "city": "Madrid",
      "postalCode": "28001",
      "country": "ES",
      "lat": 1,
      "lng": 1
    },
    "createdAt": "2026-09-01T08:00:00.000Z",
    "updatedAt": "2026-09-01T08:00:00.000Z",
    "description": "Example text.",
    "capacity": 1,
    "area": 1,
    "dimensions": "Example dimensions",
    "amenities": [
      "Example amenities"
    ],
    "equipments": [
      "Example equipments"
    ],
    "pricingSettings": {
      "type": "periodPrice",
      "price": "120.00",
      "period": "hour"
    },
    "insuranceEnabled": true,
    "discountEnabled": true,
    "depositValue": "120.00",
    "bufferBefore": 1,
    "bufferBeforeUnit": "hour",
    "bufferAfter": 1,
    "bufferAfterUnit": "hour",
    "customFields": {
      "example": "example"
    }
  }
}

Generated from the schema

It is PUT and not PATCH because both lists are replaced whole: always send both, including the one that does not change. Returns the updated space in detail.

Authorizations

Bearer API key with the scope below. spaces:write

Headers

Idempotency-Keystring

Unique identifier of the request, chosen by the client (a UUID works). Between 1 and 255 characters: an empty header is rejected with 400 validation_error, because the client would believe itself protected. Repeating the same key with the SAME body within 24 h returns the stored response without executing again, with the Idempotent-Replay: true header. With a DIFFERENT body it returns 422. It is the safe way to retry after a network timeout.

Limits: min length 1, max length 255

Example:"9f1c2f4e-3a5b-4f6d-8e7a-0b1c2d3e4f5a"

If-Matchstring

Optimistic locking: the ETag you read from the resource (or *). If the resource changed since, the write is rejected with 412 precondition_failed before doing anything; read it again and retry. Without the header the write always proceeds.

Example:"\"3sT3d9pBvZq4h2N0w8x1YkLmQ7c\""

Path parameters

spaceIdstringRequired

Space identifier.

Limits: min length 1

Body

application/json

Body schema: SpaceAmenitiesBody

commoditiesstring[]Required

Services offered with the space (wifi, 24/7 access, parking...). REPLACES the whole list.

amenitiesstring[]Required

Physical equipment delivered with the space (projector, whiteboard, sound...). REPLACES the whole list.

Response

application/json

Successful response.

Response schema: SpaceDetailDto

Envelope: SpaceDetailResponse. meta.warnings is present only when the operation is deprecated.

Headers: X-Request-Id · RateLimit-Limit · RateLimit-Remaining · RateLimit-Reset · ETag · Idempotent-Replay

dataobject

Detail of a warehouse or rentable space.

Show child attributes
data.idstring

Unique space identifier.

data.namestring

Space name.

data.internalReferencestring | null

Internal reference of the space, useful for matching with external systems; null if it has none.

data.isWarehouseboolean

true if the space is a warehouse that manages stock and can be the main warehouse of an order; false if it is a rentable space.

data.collectionIdstring | null

Identifier of the collection it belongs to; null if it is in none.

data.collectionNamestring | null

Full collection path, for example "Estudios > Fotografía"; null if not applicable.

data.buildingstring | null

Building it is located in; null if not applicable.

data.floornumber | null

Floor it is located on; null if not applicable.

data.locationobject

Physical location of the space.

Show child attributes
data.location.addressstring | null

Postal address; null if not recorded.

data.location.citystring | null

Municipality; null if not recorded.

data.location.postalCodestring | null

Postal code; null if not recorded.

data.location.countrystring | null

Country; null if not recorded.

data.location.latnumber | null

Latitude in decimal degrees; null if not geolocated.

data.location.lngnumber | null

Longitude in decimal degrees; null if not geolocated.

data.createdAtstring<date-time>

Creation date in ISO 8601 UTC.

data.updatedAtstring<date-time>

Last modification date in ISO 8601 UTC.

data.descriptionstring | null

Space description; null if it has none.

data.capacitynumber | null

Capacity in people; null if not defined.

data.areanumber | null

Area in square metres; null if not defined.

data.dimensionsstring | null

Dimensions as free text; null if not defined.

data.amenitiesstring[]

Additional services available (wifi, projector...).

data.equipmentsstring[]

Fixed equipment available in the space.

data.pricingSettingsobject | null

Rental pricing of the space; null if not configured. The same fields that PATCH /pricing accepts.

Show child attributes
data.pricingSettings.typestring | null

Pricing mode; null if not configured.

Available options: periodPrice, fixedPrice, pricingStructure

data.pricingSettings.pricestring | null

Base rental price as a decimal string; null if not configured.

Limits: pattern ^-?\d+\.\d{2}$

data.pricingSettings.periodstring | null

Period unit of the price; null if not configured.

Available options: hour, day, week, month

data.insuranceEnabledboolean

Whether the space allows insurance.

data.discountEnabledboolean

Whether the space allows a discount.

data.depositValuestring | null

Security deposit amount as a decimal string; null if not set.

Limits: pattern ^-?\d+\.\d{2}$

data.bufferBeforenumber | null

Time buffer reserved BEFORE the rental; null if none.

data.bufferBeforeUnitstring | null

Unit of the preceding buffer; null if none.

Available options: hour, day

data.bufferAfternumber | null

Time buffer reserved AFTER the rental; null if none.

data.bufferAfterUnitstring | null

Unit of the following buffer; null if none.

Available options: hour, day

data.customFieldsobject<string, any>

Custom field values by custom field identifier; the definitions are in /api/v1/custom-fields.

metaobject

Additional information about the response.

Show child attributes
meta.warningsobject[]

Lifecycle warnings; present only when the operation is deprecated.

Show child attributes
meta.warnings.codestring

Stable warning code.

Available options: deprecated

meta.warnings.messagestring

For people: what is deprecated, until when, and what to use.

meta.warnings.sunsetstring

Day (YYYY-MM-DD) the operation stops being served.

meta.warnings.replacementstring | null

operationId of the operation to use instead, or null if there is none.

Errors

StatusCodesMeaning
400validation_errorMalformed query or body. errors[] lists every offending field with its stable code.
404not_foundIt does not exist or is outside the scope of the API key.
409conflictThe current state of the resource prevents the operation, a request with that Idempotency-Key is already in progress, or another conditional write (If-Match) held the resource for more than five seconds. errors[0].code says which: in_progress and lock_timeout are solved by retrying; invalid_state is not, because the state of the resource forbids the operation.
412precondition_failedThe If-Match entity tag does not match the current representation. Read the resource again and retry.
422idempotency_key_reusedThe same key was used before with a different body. Change the key.

401, 403, 429, 500 can be returned by any operation. Errors

Deprecation

This operation is not deprecated. Deprecations are announced with a Deprecation header and a sunset date. Versioning policy

  • Catalog & inventory

    Space

    Warehouse or rentable space of the account.