PATCH
/
v1
/
businesses
/
{businessId}
/
tags
/
dimensions
/
{dimensionId}
Update tag dimension
curl --request PATCH \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/tags/dimensions/{dimensionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "strictness": "BALANCING"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "key": "<string>",
  "strictness": "BALANCING",
  "display_name": "<string>",
  "defined_values": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "key": "<string>",
      "value": "<string>",
      "display_name": "<string>",
      "archived_at": "2023-11-07T05:31:56Z"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "deleted_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string<uuid>
required

The UUID of the business

dimensionId
string<uuid>
required

The UUID of the tag dimension to update

Body

application/json

Parameters for updating a tag dimension. All fields are optional.

key
string

The tag dimension key

strictness
enum<string>

Tag strictness level - BALANCING requires tags to be applied to whole journal entries that balance, NON_BALANCING has no such restriction and can therefore be applied to individual line items of entries, invoices, etc.

Available options:
BALANCING,
NON_BALANCING

Response

Tag dimension updated successfully

id
string<uuid>
required

Unique identifier for the tag dimension

key
string
required

The tag dimension key

strictness
enum<string>
required

Tag strictness level - BALANCING requires tags to be applied to whole journal entries that balance, NON_BALANCING has no such restriction and can therefore be applied to individual line items of entries, invoices, etc.

Available options:
BALANCING,
NON_BALANCING
defined_values
object[]
required

Predefined values for this tag dimension

created_at
string<date-time>
required
updated_at
string<date-time>
required
display_name
string | null

Display name for the tag dimension

deleted_at
string<date-time> | null