Allocation Templates Admin

Update an allocation template

Updates the name and allocation specifications for a template. This endpoint uses the If-Match header for optimistic locking. To get the required ETag value, first make a GET request for this resource.

put/demand/accounts/{account_id}/allocation-templates/{template_id}

Request

Headers

If-Matchstring etag
Example:W/"1234"

The ETag value of the resource you intend to update. This is used for optimistic locking to prevent you from accidentally overwriting changes made by someone else. You can get the ETag from a GET request for the resource. The ETag value should always be wrapped in double quotes, whether it is part of a weak ETag or standalone.

Request body

namestring required

A descriptive name for the allocation template.

Example request

{
  "supply_allocations": [
    {
      "percentage_max": 100
    }
  ]
}

Response

The allocation template was updated successfully.

Changes

No recorded changes to this operation across all 1 revision of this API.