---
title: "Set session priority"
method: POST
path: "/api/session/{id}/priority"
tags: ["Session"]
---

# Set session priority

`POST /api/session/{id}/priority`

Assigns priority to a charging session (requires owner or service permissions).


Prioritized sessions are allocated before unprioritized ones and will receive
at least the prioritized current.

<b>Important considerations:</b>

- Multiple sessions can be prioritized; the caller must ensure enough available current.

- If there is insufficient current, prioritized sessions are allocated on a first-come, first-served basis.

- After allocating prioritized sessions, any remaining current is distributed among unprioritized sessions.

## Path parameters

- `id` string, uuid, required

## Request body

- ChargePriority
  - `prioritizedPhases` 1 | 3 — 1 = One 3 = Three
  - `prioritizedCurrent` number, double, nullable

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/zaptec/apis/zaptec-api.md) · [All operations](https://skmtc.dev/zaptec/apis/zaptec-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zaptec/zaptec-api/revisions/6892fe4b8df5/schema)
