Skip to main content
POST
Enable or disable many dimension values

Authorizations

X-API-Key
string
header
required

User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.

Headers

The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.

Pattern: ^le_[a-zA-Z0-9]+$

Path Parameters

dimensionKey
string
required

A key from GET /v2/accounting/dimensions.

Body

application/json
enabled
boolean
required

Whether the values can be coded onto new entries.

valueIds
string[]
required

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

Required array length: 1 - 100 elements
Required string length: 1 - 255
Example:

Response

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

items
AccountingDimensionValue · object[]
required