---
title: "Asynchronously Unregister a Volume from Stack"
method: POST
path: "/uaas/stacks/{stack_id}/volumes/{volume_id}:unregister"
tags: ["UniFS As A Service (UaaS)"]
---

# Asynchronously Unregister a Volume from Stack

`POST /uaas/stacks/{stack_id}/volumes/{volume_id}:unregister`

## Request

- Base URL: `https://am1.portal.api.nasuni.com`
- URL: `https://am1.portal.api.nasuni.com/uaas/stacks/{stack_id}/volumes/{volume_id}:unregister`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nasuni/apis/portal-api/docs/uaas/stacks/:stack_id/volumes/:volume_id:unregister/post.ts> (a function with typed inputs; its response is checked against the schema)

Start an asynchronous unregistration for a UaaS-attached volume.

Creates an ``uaas_volume_unregister`` task, dispatches the corresponding
edge command, and returns a customer-safe ``TaskSummaryDto`` for polling.
The NOC NDS configuration is only updated once the edge confirms via
eventhub. Legacy synchronous callers continue to work through the
``DELETE`` route above.

## Path parameters

- `stack_id` string, uuid, required
- `volume_id` string, required

## Response `202`

Volume unregistration accepted; command dispatched to edge

- TaskSummaryDto: Customer-facing task view: the rolled-up task `state` plus an optional, curated task-level `reason`. Deliberately carries no `steps`. Internal step `reason`s — unstructured, engineering-facing strings (often raw exception detail) — stay in the backend and never ride on this DTO. The task-level `reason` is a separate, customer-safe contract persisted when the task becomes failed. It is never derived from internal step reasons while serving a customer request.
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `resource` string, required
  - `resource_id` union
    - string, uuid
    - string
  - `stack_id` string, uuid, nullable
  - `action` string, required
  - `executor` 'edge', required
  - `executor_id` string, uuid, nullable
  - `initiated_by` 'portal' | 'edge', required
  - `initiator_id` string, uuid, nullable
  - `activity_log_id` string, uuid, nullable
  - `reason` string, nullable
  - `state` 'in_progress' | 'completed' | 'failed', required
  - `last_updated_at` string, date-time, required
  - `user_acknowledged_at` string, date-time, nullable
  - `deletion_time` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nasuni/apis/portal-api.md) - [All operations](https://skmtc.dev/nasuni/apis/portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nasuni/apis/portal-api/revisions/2a505bec6d14?raw)
