Enable or disable many dimension values

Changed on

Turn up to 100 values of one dimension on or off at once. The batch succeeds or fails as a whole.

post/v2/accounting/dimensions/{dimensionKey}/values/bulk

Request

  • Base URL
    https://api.slash.com
  • URL
    https://api.slash.com/v2/accounting/dimensions/{dimensionKey}/values/bulk
  • Auth
    API key in header X-API-Key

Request body

enabledboolean required

Whether the values can be coded onto new entries.

valueIdsstring[] required

The values to set, 1 to 100 per request, all on the same connection. Repeated ids are collapsed.

Example request

{
  "valueIds": [
    "accounting_account_2rj4l7hmrrrcv",
    "accounting_account_3o1xabrjl8s8x"
  ]
}

Response

The values, in the order given, with their new availability.

Example response

{
  "items": [
    {
      "id": "accounting_account_2rj4l7hmrrrcv",
      "dimensionKey": "account",
      "connectionId": "accounting_connection_2rj4l7hmrrrcv",
      "name": "6100 Software Subscriptions",
      "externalId": "80",
      "platformStatus": "active",
      "parentId": "acc_dim_val_2rj4l7hmrrrcv"
    }
  ]
}

Changes