> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onstacks.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update address book entry



## OpenAPI

````yaml /openapi.yaml put /v1/address-book/{entryId}
openapi: 3.1.0
info:
  title: Onstacks Backend API
  version: 0.1.0
  summary: >-
    Public API contract for workspace wallet, transfer, provider routing, API
    key, and webhook flows.
servers:
  - url: https://api.onstacks.io
security: []
tags:
  - name: Health
  - name: Workspace
  - name: Wallets
  - name: Transfers
  - name: Corridors
  - name: Providers
  - name: Quotes
paths:
  /v1/address-book/{entryId}:
    put:
      tags:
        - Wallets
      summary: Update address book entry
      parameters:
        - in: path
          name: entryId
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddressBookEntryRequest'
      responses:
        '200':
          description: Address book entry updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddressBookEntryResponse'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - apiKeyBearer: []
components:
  schemas:
    AddressBookEntryRequest:
      type: object
      required:
        - label
        - address
        - network_code
      properties:
        label:
          type: string
          maxLength: 80
        address:
          type: string
        network_code:
          type: string
        asset_symbol:
          type: string
        trust_status:
          type: string
          enum:
            - trusted
            - untrusted
            - blocked
          default: trusted
        notes:
          type: string
          maxLength: 500
    AddressBookEntryResponse:
      type: object
      required:
        - data
        - error
        - request_id
      properties:
        data:
          type: object
          required:
            - entry
          properties:
            entry:
              $ref: '#/components/schemas/AddressBookEntry'
        error:
          type: 'null'
        request_id:
          type: string
    AddressBookEntry:
      type: object
      required:
        - id
        - label
        - address
        - network_code
        - trust_status
        - status
        - created_at
        - updated_at
        - created_by
      properties:
        id:
          type: string
          format: uuid
        label:
          type: string
        address:
          type: string
        network_code:
          type: string
        asset_symbol:
          type: string
        trust_status:
          type: string
          enum:
            - trusted
            - untrusted
            - blocked
        status:
          type: string
          enum:
            - active
            - archived
        notes:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        archived_at:
          type: string
          format: date-time
        created_by:
          $ref: '#/components/schemas/User'
    ErrorEnvelope:
      type: object
      required:
        - data
        - error
        - request_id
      properties:
        data:
          type: 'null'
        error:
          $ref: '#/components/schemas/ApiError'
        request_id:
          type: string
    User:
      type: object
      required:
        - id
        - email
        - display_name
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        display_name:
          type: string
    ApiError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
  responses:
    ValidationError:
      description: Request payload is invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Caller is not authenticated
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: Requested resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    apiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Workspace API key. Send it as `Authorization: Bearer <api_key>`.'

````