201Successful Response
Schema: SuccessEnvelope_CustomBucketResponse_
successbooleanmessagestringcodestringdataCustomBucketResponse
/api/v1/businesses/{business_id}/cfo-portal/bucketsCreate a new custom managerial bucket for categorizing GL accounts.
The bucket key must be unique and cannot conflict with default bucket keys. Use lowercase letters, numbers, and underscores only.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
business_idstringrequiredSchema: CustomBucketCreateRequest
keystringrequiredUnique slug for the bucket (lowercase, underscores allowed)
labelstringrequiredDisplay name for the bucket
colorstringColor theme: green, orange, indigo, accent, gray
classificationstringBucket classification: operating_revenue, cogs, operating_expense, other_income, other_expense
sort_orderintegerSchema: SuccessEnvelope_CustomBucketResponse_
successbooleanmessagestringcodestringdataCustomBucketResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject