---
title: "Assigns a default allocation template to an account"
method: PUT
path: "/demand/accounts/{account_id}/allocation-template-association"
tags: ["Allocation Templates Admin"]
---

# Assigns a default allocation template to an account

`PUT /demand/accounts/{account_id}/allocation-template-association`

## Request

- Base URL: `https://api.cint.com/v1`
- URL: `https://api.cint.com/v1/demand/accounts/{account_id}/allocation-template-association`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/cint/apis/demand-api/docs/demand/accounts/:account_id/allocation-template-association/put.ts> (a function with typed inputs; its response is checked against the schema)

Assigns a default allocation template to an account. This endpoint uses the If-Match header for optimistic locking. To get the required ETag value, first make a request to the [GET endpoint](./get-account-allocation-template-association) for this resource.

## Headers

- `If-Match` string, etag, required

## Request body

- UpdateAccountAllocationTemplateAssociation
  - `template_id` string, ulid, required: A unique identifier for the template.

## Response `204`

The allocation template was associated successfully.

## Other responses

- `400`: A request is not valid and can't be processed.
- `401`: A request is unauthorized.
- `403`: A requested is forbidden.
- `404`: A requested resource isn't found.
- `412`: The resource could not be modified because the ETag in the If-Match header does not match the current version. This means the resource was updated by another request after you retrieved it.
- `500`: A request failed due to an internal error.

---

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