# 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: cf52545e
Security: CodeBearer

## Path parameters:

  - `pocket_id` (string, required)

  - `portal_id` (string, required)

## Request fields (application/json):

  - `name` (any)
    Portal name

  - `status` (any)
    Portal status

## 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)

