My Project
  1. Address
My Project
  • Untitled Doc
  • Sample APIs
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Finds Pets by status
      GET
    • Find pet by ID
      GET
    • Deletes a pet
      DELETE
  • pet
    • uploads an image
      POST
    • Finds Pets by tags
      GET
    • Updates a pet in the store with form data
      POST
  • store
    • Returns pet inventories by status
      GET
    • Place an order for a pet
      POST
    • Find purchase order by ID
      GET
    • Delete purchase order by ID
      DELETE
  • user
    • Creates list of users with given input array
      POST
    • Get user by user name
      GET
    • Updated user
      PUT
    • Delete user
      DELETE
    • Logs user into the system
      GET
    • Logs out current logged in user session
      GET
    • Creates list of users with given input array
      POST
    • Create user
      POST
  • 👀 A_接口状态_看效果
    • 1_开发中_全参数测试-接口文档默认mock
  • User
    • Authentication
      • refresh_token_create
      • logoutAllDevices
      • logoutDevice
      • sendOTP
    • Customer
      • AuthenticateCustomer
      • GetCustomerDetails
      • UpdateCustomer
      • DeleteCustomer
  • Location
    • Country
      • ListCountries
    • Region
      • GetRegionByPoint
    • Address
      • ListAddresses
        GET
      • CreateAddress
        POST
      • UpdateAddress
        PATCH
      • DeleteAddress
        DELETE
  • Wallet
    • listWalletDetails
    • updateWallet
  • FCM
    • Devices
      • devices_list
      • devices_create
      • devices_retrieve
      • devices_update
      • devices_destroy
      • devices_partial_update
    • Notification
      • listNotifications
      • deleteNotification
      • bulkDeleteNotifications
  • AppInfo
    • getSocialAccounts
    • getAppInfo
    • listFaqs
  1. Address

CreateAddress

POST
/api/addresses/create/
Location/Address
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/addresses/create/' \
--form 'point=""' \
--form 'description=""' \
--form 'location_type=""'
Response Response Example
201 - Example 1
{
    "id": 0,
    "description": "string",
    "location_type": "HOME",
    "point": {
        "type": "Point",
        "coordinates": [
            12.9721,
            77.5933
        ]
    },
    "map_description": "string",
    "map_image": "http://example.com"
}

Request

Body Params multipart/form-data
point
object 
Location Point
required
type
enum<string> 
optional
Allowed value:
Point
coordinates
array[number <float>]
optional
>= 2 items<= 3 items
Example:
[12.9721,77.5933]
description
string 
required
>= 1 characters
map_description
string 
optional
Description for the map view
>= 1 characters
location_type
enum<string> 
required
HOME - Home
WORK - Work
Allowed values:
HOMEWORK
map_image
file 
optional
Image of the location on the map

Responses

🟢201Created
application/json
Body
id
integer 
read-onlyrequired
description
string 
required
location_type
enum<string> 
required
HOME - Home
WORK - Work
Allowed values:
HOMEWORK
point
object 
Location Point
required
type
enum<string> 
optional
Allowed value:
Point
coordinates
array[number <float>]
optional
>= 2 items<= 3 items
Example:
[12.9721,77.5933]
map_description
string 
optional
Description for the map view
map_image
string <uri> | null 
optional
Image of the location on the map
🟠400Bad Request
🟠401Unauthorized
🟠405405
🟠406406
🟠415415
🟠429429
🔴500Server Error
Previous
ListAddresses
Next
UpdateAddress
Built with