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

# Update User Address

> **Host**: http://qshop.ng



## OpenAPI

````yaml put /users/{userId}/address
openapi: 3.1.0
info:
  title: OpenAPI Specification
  version: 1.0.0
  description: >-
    QShop storefront API.  This API is used to build a storefront for a QShop
    store
  contact:
    name: QShop
    url: https://qshop.ng
    email: hello@qshop.ng
servers:
  - url: http://staging.qshop.ng/apiv2
    description: Staging server
  - url: http://qshop.ng/api
    description: Production server
security: []
paths:
  /users/{userId}/address:
    put:
      tags:
        - Users
      summary: Update User Address
      description: '**Host**: http://qshop.ng'
      parameters:
        - name: userId
          in: query
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                line_1:
                  type: string
                line_2:
                  type: string
                geoLocation:
                  type: object
                  properties:
                    zipCode:
                      type: string
                    geoNames:
                      type: array
                      items:
                        type: object
                        properties:
                          lng:
                            type: string
                          geonameId:
                            type: integer
                          name:
                            type: string
                          fclName:
                            type: string
                          toponymName:
                            type: string
                          fcodeName:
                            type: string
                          adminName1:
                            type: string
                          lat:
                            type: string
                          fcl:
                            type: string
                          fcode:
                            type: string
                          population:
                            type: integer
                          adminCode1:
                            type: string
                          countryId:
                            type: string
                          countryCode:
                            type: string
                          countryName:
                            type: string
                          adminCodes1:
                            type: object
                            properties:
                              ISO3166_2:
                                type: string
                            required:
                              - ISO3166_2
                        required:
                          - lng
                          - geonameId
                          - name
                          - fclName
                          - toponymName
                          - fcodeName
                          - adminName1
                          - lat
                          - fcl
                          - fcode
                          - population
                    addressProximity:
                      type: string
                    google:
                      type: object
                      properties:
                        address_components:
                          type: array
                          items:
                            type: object
                            properties:
                              long_name:
                                type: string
                              short_name:
                                type: string
                              types:
                                type: array
                                items:
                                  type: string
                            required:
                              - long_name
                              - short_name
                              - types
                        adr_address:
                          type: string
                        formatted_address:
                          type: string
                        geometry:
                          type: object
                          properties:
                            location:
                              type: object
                              properties:
                                lat:
                                  type: number
                                lng:
                                  type: number
                              required:
                                - lat
                                - lng
                            viewport:
                              type: object
                              properties:
                                south:
                                  type: number
                                west:
                                  type: number
                                north:
                                  type: number
                                east:
                                  type: number
                              required:
                                - south
                                - west
                                - north
                                - east
                          required:
                            - location
                            - viewport
                        name:
                          type: string
                        types:
                          type: array
                          items:
                            type: string
                        utc_offset:
                          type: integer
                        html_attributions:
                          type: array
                        utc_offset_minutes:
                          type: integer
                      required:
                        - address_components
                        - adr_address
                        - formatted_address
                        - geometry
                        - name
                        - types
                        - utc_offset
                        - html_attributions
                        - utc_offset_minutes
                    fullAddress:
                      type: string
                    coordinates:
                      type: object
                      properties:
                        lng:
                          type: number
                        lat:
                          type: number
                      required:
                        - lng
                        - lat
                  required:
                    - zipCode
                    - geoNames
                    - addressProximity
                    - google
                    - fullAddress
                    - coordinates
                address:
                  type: string
                isDefault:
                  type: boolean
              required:
                - line_1
                - line_2
                - geoLocation
                - address
                - isDefault
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      _id:
                        type: string
                      roles:
                        type: array
                        items:
                          type: string
                      reset_pass:
                        type: boolean
                      profiles:
                        type: array
                      social:
                        type: array
                        items:
                          type: object
                          properties:
                            provider:
                              type: string
                            email:
                              type: string
                            id:
                              type: string
                          required:
                            - provider
                            - email
                            - id
                      email:
                        type: string
                      username:
                        type: string
                      pass:
                        type: string
                      access_code:
                        type: string
                      __v:
                        type: integer
                      full_name:
                        type: string
                      last_access:
                        type: string
                      reg_date:
                        type: string
                      shopCount:
                        type: integer
                      test_user:
                        type: boolean
                      telephone:
                        type: string
                      status:
                        type: string
                      addresses:
                        type: array
                        items:
                          type: object
                          properties:
                            address:
                              type: string
                            line_1:
                              type: string
                            line_2:
                              type: string
                            stateData:
                              type: string
                            countryData:
                              type: string
                            cityData:
                              type: string
                            area:
                              type: string
                            geoLocation:
                              type: object
                              properties:
                                fullAddress:
                                  type: string
                                zipCode:
                                  type: string
                                coordinates:
                                  type: object
                                  properties:
                                    lng:
                                      type: number
                                    lat:
                                      type: number
                                  required:
                                    - lng
                                    - lat
                                points:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    coordinates:
                                      type: array
                                      items:
                                        type: number
                                    _id:
                                      type: string
                                  required:
                                    - type
                                    - coordinates
                                    - _id
                                addressProximity:
                                  type: string
                                geoNames:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      lng:
                                        type: string
                                      geonameId:
                                        type: integer
                                      name:
                                        type: string
                                      fclName:
                                        type: string
                                      toponymName:
                                        type: string
                                      fcodeName:
                                        type: string
                                      adminName1:
                                        type: string
                                      lat:
                                        type: string
                                      fcl:
                                        type: string
                                      fcode:
                                        type: string
                                      population:
                                        type: integer
                                      adminCode1:
                                        type: string
                                      countryId:
                                        type: string
                                      countryCode:
                                        type: string
                                      countryName:
                                        type: string
                                      adminCodes1:
                                        type: object
                                        properties:
                                          ISO3166_2:
                                            type: string
                                        required:
                                          - ISO3166_2
                                    required:
                                      - lng
                                      - geonameId
                                      - name
                                      - fclName
                                      - toponymName
                                      - fcodeName
                                      - adminName1
                                      - lat
                                      - fcl
                                      - fcode
                                      - population
                                google:
                                  type: object
                                  properties:
                                    address_components:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          long_name:
                                            type: string
                                          short_name:
                                            type: string
                                          types:
                                            type: array
                                            items:
                                              type: string
                                        required:
                                          - long_name
                                          - short_name
                                          - types
                                    adr_address:
                                      type: string
                                    formatted_address:
                                      type: string
                                    geometry:
                                      type: object
                                      properties:
                                        location:
                                          type: object
                                          properties:
                                            lat:
                                              type: number
                                            lng:
                                              type: number
                                          required:
                                            - lat
                                            - lng
                                        viewport:
                                          type: object
                                          properties:
                                            south:
                                              type: number
                                            west:
                                              type: number
                                            north:
                                              type: number
                                            east:
                                              type: number
                                          required:
                                            - south
                                            - west
                                            - north
                                            - east
                                      required:
                                        - location
                                        - viewport
                                    name:
                                      type: string
                                    types:
                                      type: array
                                      items:
                                        type: string
                                    utc_offset:
                                      type: integer
                                    html_attributions:
                                      type: array
                                    utc_offset_minutes:
                                      type: integer
                                  required:
                                    - address_components
                                    - adr_address
                                    - formatted_address
                                    - geometry
                                    - name
                                    - types
                                    - utc_offset
                                    - html_attributions
                                    - utc_offset_minutes
                                _id:
                                  type: string
                              required:
                                - fullAddress
                                - zipCode
                                - coordinates
                                - points
                                - addressProximity
                                - geoNames
                                - google
                                - _id
                            isDefault:
                              type: boolean
                            _id:
                              type: string
                          required:
                            - address
                            - line_1
                            - line_2
                            - stateData
                            - countryData
                            - cityData
                            - area
                            - geoLocation
                            - isDefault
                            - _id
                    required:
                      - _id
                      - roles
                      - reset_pass
                      - profiles
                      - social
                      - email
                      - username
                      - pass
                      - access_code
                      - __v
                      - full_name
                      - last_access
                      - reg_date
                      - shopCount
                      - test_user
                      - telephone
                      - status
                      - addresses
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````