# Create or update a spending account assignment

Endpoint: POST /buyers/{buyerID}/spendingaccounts/assignments
Version: 1.0.445.36017
Security: OAuth2

## Path parameters:

  - `buyerID` (string, required)
    ID of the buyer.

## Request fields (application/json):

  - `SpendingAccountID` (string, required)

  - `UserID` (string)

  - `UserGroupID` (string)

  - `AllowExceed` (boolean)
    If true, a user can place an order for an amount greater than the available balance, causing the balance to go negative.

## Response 4XX fields (application/json):

  - `StatusCode` (integer)
    Example: "404"

  - `ErrorCode` (string)
    Example: "NotFoundError"

  - `Message` (string)
    Example: "Object not found"

  - `Data` (object)
    Example: {"ObjectType":"","ObjectID":""}


## Response 204 fields
