---
title: "Assign a human accountant to a customer company (super-admin only)"
method: POST
path: "/accountant/companies/{customerId}/accountant-assignments"
tags: ["Accountants"]
---

# Assign a human accountant to a customer company (super-admin only)

`POST /accountant/companies/{customerId}/accountant-assignments`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/accountant-assignments`
- Auth: HTTP bearer

## Path parameters

- `customerId` string, uuid, required

## Request body

- CreateAccountantAssignmentInput
  - `accountantId` string, required: Canonical PostgreSQL UUID of the accountant profile.
  - `isPrimary` boolean
  - `customerVisible` boolean
  - `customerRole` string, nullable
  - `schedulingUrl` string, uri, nullable

## Response `201`

Assignment created

- AccountantAssignmentResponse
  - `success` boolean
  - `data` AccountantAssignment
    - `id` string, uuid
    - `companyId` string, uuid
    - `accountantId` string, uuid
    - `assignedAt` string, date-time
    - `isPrimary` boolean
    - `customerVisible` boolean
    - `customerRole` string, nullable
    - `schedulingUrl` string, uri, nullable
    - `accountant` Accountant
      - `id` string, uuid
      - `userId` string, uuid, nullable
      - `displayName` string
      - `title` string, nullable
      - `bio` string, nullable
      - `avatarUrl` string, nullable
      - `credentials` string[]
      - `createdAt` string, date-time
      - `updatedAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Accountant or company not found
- `409`: Accountant already assigned to company
- `422`: Request failed validation

## Changes

- **2026-11-24** `468336f6c266`: 1 breaking, 1 info
  - added the pattern `^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$` to the request property `accountantId`
  - the `accountantId` request property format was generalized from `uuid` to no format
- **2026-11-24** `3187315c956d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/accountant-assignments/post.md)

---

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