PUT
/
api
/
end_users
/
{end_user_id_or_heron_id}
/
profit_and_loss_layout
curl --request PUT \
  --url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/profit_and_loss_layout \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "category_labels": [
    "Postage"
  ],
  "section_slug": "operational_expenses"
}'
{
  "sections": [
    {
      "labels": [
        "<string>"
      ],
      "metrics": [
        {
          "denominator": {
            "labels": [
              "<string>"
            ],
            "sections": [
              "<string>"
            ]
          },
          "indent": 123,
          "is_growth": true,
          "name": "<string>",
          "numerator": {
            "labels": [
              "<string>"
            ],
            "sections": [
              "<string>"
            ]
          }
        }
      ],
      "name": "<string>",
      "slug": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

end_user_id_or_heron_id
string
required

Body

application/json
category_labels
string[]
required

List of category labels to assign to a different section

Example:
["Postage"]
section_slug
string
required

Slug of section to assign labels to

Example:

"operational_expenses"

Response

200 - application/json
OK
sections
object[]

Ordered list of P&L sections

Was this page helpful?