---
title: "Update Network Address"
url: "https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598/operations/AddressController_update"
---

> Full API specification: https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598.md

# Update Network Address

`PUT` `/tenants/addresses/{id}`

Operation ID: `AddressController_update`

Modifies the configuration of an existing network address including its associated protocols and access settings.

## Path parameters

- `id` (string, required) - The unique identifier of the address to update

## Request body (required)

Content types: `application/json`

## Responses

- `200` - Successfully updated the address
- `401` - Unauthorized - Invalid or missing authentication token
- `403` - Forbidden - Insufficient permissions to perform this operation.
- `404` - Address not found with the provided ID

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Cipherscale API
  version: "1.0"
servers:
  - url: https://public-api.cipherscale.com/qa
    description: Cipherscale Public API Server
paths:
  /tenants/addresses/{id}:
    put:
      operationId: AddressController_update
      summary: Update Network Address
      description: Modifies the configuration of an existing network address including
        its associated protocols and access settings.
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier of the address to update
          schema:
            type: string
      requestBody:
        required: true
        description: The address data to update
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAddressDto"
      responses:
        "200":
          description: Successfully updated the address
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AddressDto"
        "401":
          description: Unauthorized - Invalid or missing authentication token
        "403":
          description: Forbidden - Insufficient permissions to perform this operation.
        "404":
          description: Address not found with the provided ID
      tags:
        - Addresses
      security:
        - ApiKeyAuth: []
security:
  - ApiKeyAuth: []
components:
  schemas:
    UpdateAddressDto:
      type: object
      properties:
        protocols:
          type: array
          items:
            type: string
            format: uuid
        address:
          type: string
      required:
        - protocols
        - address
    AddressDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        address:
          type: string
        isIp:
          type: boolean
        type:
          enum:
            - PRIVATE
            - SAAS
            - INTERNET
          type: string
        protocols:
          type: array
          items:
            $ref: "#/components/schemas/ProtocolDto"
      required:
        - id
        - address
        - isIp
        - type
        - protocols
    ProtocolDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        networkProtocols:
          type: array
          items:
            $ref: "#/components/schemas/NetworkProtocolDto"
        type:
          enum:
            - ALL
            - PREDEFINED
            - CUSTOM
          type: string
      required:
        - id
        - name
        - networkProtocols
        - type
    NetworkProtocolDto:
      type: object
      properties:
        protocol:
          type: string
          enum:
            - TCP
            - UDP
            - ICMP
        port:
          type: string
      required:
        - protocol
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
