# Update Pocket Portal

This endpoint updates a portal's `name`, or closes it by setting its `status` to `CLOSED`.
Closing a portal is irreversible; the only accepted value for `status` is `CLOSED`.
Returns `204 No Content` on success.

Endpoint: PATCH /api/v2/pockets/{pocket_id}/portals/{portal_id}/
Version: Version: 0d14821f
Security: CodeBearer

## Security:

  - `CodeBearer` (unknown)
    oauth2 scopes: pockets.write, pockets.read

## Path parameters:

  - `pocket_id` (string, required)

  - `portal_id` (string, required)

## Request fields (application/json):

  - `name` (any)
    Portal name

  - `status` (any)
    Portal status

## Response 204:

  - `204` (unknown)
    Successful Response

## Response 404:

  - `404` (unknown)
    Not found

## Response 422:

  - `422` (unknown)
    Validation Error

## Response 422 fields (application/json):

  - `detail` (array)

  - `detail.loc` (array, required)

  - `detail.msg` (string, required)

  - `detail.type` (string, required)

  - `detail.input` (any)

  - `detail.ctx` (object)

