---
title: "POST /queues/qos"
method: POST
path: "/queues/qos"
---

# POST /queues/qos

`POST /queues/qos`

## Request

- Base URL: `https://www.rcac.purdue.edu/api`
- URL: `https://www.rcac.purdue.edu/api/queues/qos`
- Auth: none declared
- TypeScript: <https://skmtc.dev/purdue/apis/rcac-api/docs/queues/qos/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a QoS

## Request body `*/*`

- object
  - `scheduler_id` integer, required: Associate the QoS to a specific scheduler
  - `name` string, required: Entry name
  - `description` string: Entry description
  - `flags` string: Comma-separated list of flags
  - `max_jobs_pa` integer: Max jobs per account
  - `max_jobs_per_user` integer: Max jobs per user
  - `max_jobs_accrue_pa` integer: Max jobs accrueable per account
  - `max_jobs_accrue_pu` integer: Max jobs accrueable per user
  - `max_submit_jobs_pa` integer: Max jobs submittable per account
  - `max_submit_jobs_per_user` integer: Max jobs submittable per user
  - `max_tres_pj` string: Max TRES per job
  - `max_tres_pn` string: Max TRES per node
  - `max_tres_pu` string: Max TRES per user
  - `max_tres_pa` string: Max TRES per account
  - `max_tres_mins_pj` integer: Max TRES minutes per job
  - `max_tres_run_mins_pa` integer: Max TRES run minutes per account
  - `max_tres_run_mins_pu` integer: Max TRES run minutes per user
  - `min_tres_pj` string: Minimum TRES per job
  - `max_wall_duration_per_job` integer: Max wall duration per job
  - `grp_jobs` integer: Group jobs
  - `grp_jobs_accrue` integer: Accrueable Group jobs
  - `grp_submit_jobs` integer: Group submit jobs
  - `grp_tres` string: Group TRES
  - `grp_tres_mins` integer: Group TRES minutes
  - `grp_tres_run_mins` integer: Group TRES run minutes
  - `grp_wall` integer: Group walltime in minutes
  - `preempt` string: Preempt
  - `preempt_mode` integer: Preempt mode
  - `preempt_exempt_time` integer: Preempt exempt time (in minutes)
  - `priority` integer: The act of 'stopping' one or more 'low-priority' jobs to let a 'high-priority' job run.
  - `usage_factor` string: Usage factor
  - `usage_thres` string: Usage threshold
  - `limit_factor` string: Limit factor
  - `grace_time` integer: Grace time in minutes

## Response `201`

Successful entry creation

## Other responses

- `409`: Invalid data

---

[API](https://skmtc.dev/purdue/apis/rcac-api.md) - [All operations](https://skmtc.dev/purdue/apis/rcac-api/llms.txt) - [OpenAPI document](https://skmtc.dev/purdue/apis/rcac-api/revisions/b6b910de69b0?raw)
