Detach volume | Volumes | Northflank API docs
v1
Double column
API
CLI
JS Client

Volumes /

Detach volume

Detach a volume

Required permission

Project > Volumes > General > Update

Path parameters

    • projectId

      string required

      ID of the project

    • volumeId

      string required

      ID of the volume

Request body

  • {object}
    • nfObject

      {object} required

      The object to detach this volume to.

      • id

        string required

        The id of object to detach this volume to.

        pattern
        ^[A-Za-z0-9-]+$
      • type

        string required

        The type of the object to detach this volume to.

        one of
        service

Response body

  • {object}

    Response object.

    • data

      {object} required

      Result data.

    API
    CLI
    JS Client

    POST /v1/projects/{projectId}/volumes/{volumeId}/detach

    Example request

    Request body
    curl
    curl --header "Content-Type: application/json" \
      --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
      --request POST \
      --data '{"nfObject":{"id":"example-service","type":"service"}}' \
      https://api.northflank.com/v1/projects/{projectId}/volumes/{volumeId}/detach

    Example response

    200 OK

    The operation was performed successfully.

    JSON

    {
      "data": {}
    }

    © 2024 Northflank Ltd. All rights reserved.