---
title: "Create a new Policy QoS config"
method: POST
path: "/config/policy"
---

# Create a new Policy QoS config

`POST /config/policy`

Create a new Policy QoS config.

## Request body

- PolicyEntry
  - `policyIdent` string, required — Policy name
  - `policyInfo` object
    - `type` 0 | 1 — policy type(0-TrTCM, 1-SrTCM)
    - `colorAware` boolean — Policy color for QoS
    - `committedInfoRate` integer — policy type
    - `peakInfoRate` integer — policy type
    - `committedBlkSize` integer — policy type
    - `excessBlkSize` integer — policy type
  - `targetObject` object, required
    - `attachment` 0 | 1, required — Target Attachment(0-RuleName, 1-PortName)
    - `polObjName` string, required — Target Names

## Response `204`

OK

## Other responses

- `400` — Malformed arguments for API call
- `401` — Invalid authentication credentials
- `403` — Capacity insufficient
- `404` — Resource not found
- `409` — Resource Conflict. VLAN already exists OR dependency VRF/VNET not found
- `500` — Internal service error
- `503` — Maintenance mode

---

[API](https://skmtc.net/loxilb-io/apis/loxilb-rest-api.md) · [All operations](https://skmtc.net/loxilb-io/apis/loxilb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loxilb-io/loxilb-rest-api/versions/45e9f0a95af0/schema)
