---
title: "Controller Build Growth Framework"
method: POST
path: "/ad_analytics/rfm/build_growth_framework"
---

# Controller Build Growth Framework

`POST /ad_analytics/rfm/build_growth_framework`

## Request

- Base URL: `https://api.akkio.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.akkio.com/ad_analytics/rfm/build_growth_framework`
- Auth: none declared

Builds the growth framework for an RFM model

## Request body

- RFMBuildGrowthFrameworkPayload
  - `rfm_id` integer, required: The ID of the RFM model to build growth framework for
  - `brand_selections` SelectionPayload, required
    - `selections` array[], required
      - Selection[]
        - `field` string, required
        - `values` string[], nullable, required
  - `category_selections` SelectionPayload, required
    - `selections` array[], required
      - Selection[]
        - `field` string, required
        - `values` string[], nullable, required

## Response `201`

Successful Response

- SrcAsyncJobServiceBuildConcreteAsyncJobRecordClassLocalsConcreteAsyncJobRecord6
  - `id` integer, nullable: ID of this object.
  - `created_at` string, date-time, nullable: datetime object representing when this object was created.
  - `updated_at` string, date-time, nullable: datetime object representing when this object was updated.
  - `deleted_at` string, date-time, nullable: datetime object representing when this object was deleted.
  - `status` 'RUNNING' | 'COMPLETED' | 'FAILED'
  - `endpoint` string: Endpoint spawning async job
  - `request` union: request sent to endpoint
    - object
    - unknown[]
      - unknown
  - `sync_response` union: sync response
    - object
    - unknown[]
      - unknown
  - `error` string, nullable: error message
  - `response` GrowthFramework: Brand vs. category usage framework for analyzing customer behavior patterns.
    - `id` integer, nullable: ID of this object.
    - `created_at` string, date-time, nullable: datetime object representing when this object was created.
    - `updated_at` string, date-time, nullable: datetime object representing when this object was updated.
    - `deleted_at` string, date-time, nullable: datetime object representing when this object was deleted.
    - `async_job_id` integer, required: ID of the async job used for this growth framework.
    - `rfm_id` integer, required: The ID of the RFM analysis this framework belongs to.
    - `category_selections` object, required: Bounds for the category dimension.
    - `brand_selections` object, required: Bounds for the brand dimension.
    - `brand_thresholds` object, nullable: Thresholds for the brand terciles. If None, equal width terciles are used.
    - `category_thresholds` object, nullable: Thresholds for the category terciles. If None, equal width terciles are used.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/akkio/apis/akkio-api.md) - [All operations](https://skmtc.dev/akkio/apis/akkio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akkio/apis/akkio-api/revisions/c477deff6271?raw)
