v1

latestOpenAPI 3.0.0Apache 2.02026-07-143281,4552.1 MB
LocationCustomAttributes

BulkDeleteLocationCustomAttributes

Deletes custom attributes for locations as a bulk operation. To delete a custom attribute owned by another application, the visibility setting must be VISIBILITY_READ_WRITE_VALUES.

post/v2/locations/custom-attributes/bulk-delete

Request body

valuesobject required

The data used to update the CustomAttribute objects. The keys must be unique and are used to map to the corresponding response.

Example request

{
  "values": {
    "id1": {
      "key": "bestseller",
      "location_id": "L0TBCBTB7P8RQ"
    },
    "id2": {
      "key": "bestseller",
      "location_id": "L9XMD04V3STJX"
    },
    "id3": {
      "key": "phone-number",
      "location_id": "L0TBCBTB7P8RQ"
    }
  }
}

Response

Success

valuesobject required

A map of responses that correspond to individual delete requests. Each response has the same key as the corresponding request.

Example response

{
  "values": {
    "id1": {
      "errors": [],
      "location_id": "L0TBCBTB7P8RQ"
    },
    "id2": {
      "errors": [],
      "location_id": "L9XMD04V3STJX"
    },
    "id3": {
      "errors": [],
      "location_id": "L0TBCBTB7P8RQ"
    }
  }
}