---
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`

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.net/akkio/apis/fastapi.md) · [All operations](https://skmtc.net/akkio/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akkio/fastapi/versions/6662a407c637/schema)
