---
title: "POST /api/v1/auth/subaccounts/{pk}/allocation/"
method: POST
path: "/api/v1/auth/subaccounts/{pk}/allocation/"
tags: ["auth"]
---

# POST /api/v1/auth/subaccounts/{pk}/allocation/

`POST /api/v1/auth/subaccounts/{pk}/allocation/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/auth/subaccounts/{pk}/allocation/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/auth/subaccounts/:pk/allocation/post.ts> (a function with typed inputs; its response is checked against the schema)

Transfers packs to subaccount from main account and vice versa

If num is positive packs are transferred from main account to subaccount. If num is negative
packs are deducted from subaccount and added to the main account.

## Path parameters

- `pk` string, required

## Request body

- SubaccountPacks
  - `num` integer, required: Number of packs to be transferred

## Response `200`

- SubaccountPacks
  - `num` integer, required: Number of packs to be transferred

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
