POST api/MyAccount/AddLocation

Request Information

URI Parameters

None.

Body Parameters

LocationTB
NameDescriptionTypeAdditional information
Id

integer

None.

Location

string

None.

UserId

integer

None.

UsersTB

UsersTB

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Location": "sample string 2",
  "UserId": 1,
  "UsersTB": {
    "$id": "2",
    "id": 1,
    "name": "sample string 2",
    "email": "sample string 3",
    "password": "sample string 4",
    "type": 1,
    "list1": 1,
    "list2": 1,
    "image": "sample string 5",
    "pr": 1,
    "isActive": true,
    "Mobile": "sample string 6",
    "ConfirmCode": "sample string 7",
    "RegistrationId": "sample string 8",
    "PositionFk": 1,
    "CityFk": 1,
    "isBlocked": true,
    "isIos": true,
    "Work": "sample string 9",
    "hasMsg": 10,
    "PlanId": 1,
    "TypeId": 1,
    "CountryId": 1,
    "Long": "sample string 11",
    "Lat": "sample string 12",
    "Facebook": "sample string 13",
    "Twitter": "sample string 14",
    "Youtube": "sample string 15",
    "Instagram": "sample string 16",
    "Link": "sample string 17",
    "Description": "sample string 18",
    "Views": 1,
    "Img2": "sample string 19",
    "Img3": "sample string 20",
    "Img4": "sample string 21",
    "SpecFK": 1,
    "DescriptionAr": "sample string 22",
    "isAdmin": true,
    "Quid": "sample string 23",
    "Contract": 1,
    "Gender": 1,
    "openNotification": true,
    "Package": 1,
    "EndDate": "2019-02-20T06:25:20.9057989-06:00",
    "Membership": 1,
    "AdvertisementTBs": [
      {
        "$id": "3",
        "Id": 1,
        "Title": "sample string 2",
        "Description": "sample string 3",
        "Date": "2019-02-20T06:25:20.9057989-06:00",
        "DistrictFK": 1,
        "CityFk": 1,
        "Views": 4,
        "Counter": "sample string 5",
        "Model": "sample string 6",
        "StatusFk": 1,
        "InColor": "sample string 7",
        "OutColor": "sample string 8",
        "isMobile": true,
        "Img1": "sample string 9",
        "Img2": "sample string 10",
        "Img3": "sample string 11",
        "Img4": "sample string 12",
        "Img5": "sample string 13",
        "Img6": "sample string 14",
        "Img7": "sample string 15",
        "Img8": "sample string 16",
        "Price": 1.1,
        "UserId": 1,
        "isActive": true,
        "CategoryFK": 1,
        "PrePrice": 1.1,
        "Location": "sample string 18",
        "CategoryTB": {
          "$id": "4",
          "Id": 1,
          "CategoryAr": "sample string 2",
          "ParentId": 1,
          "CategoryEn": "sample string 3",
          "Img": "sample string 4",
          "LastChild": 5,
          "MainCategory": 6,
          "AdvertisementTBs": [
            {
              "$ref": "3"
            },
            {
              "$ref": "3"
            }
          ]
        },
        "CityTB": {
          "$id": "5",
          "Id": 1,
          "City": "sample string 2",
          "CountryFk": 1,
          "CityAr": "sample string 3",
          "AdvertisementTBs": [
            {
              "$ref": "3"
            },
            {
              "$ref": "3"
            }
          ],
          "UsersTBs": [
            {
              "$ref": "2"
            },
            {
              "$ref": "2"
            }
          ]
        },
        "StatusTB": {
          "$id": "6",
          "Id": 1,
          "Status": "sample string 2",
          "AdvertisementTBs": [
            {
              "$ref": "3"
            },
            {
              "$ref": "3"
            }
          ],
          "BookingTBs": [
            {
              "$id": "7",
              "Id": 1,
              "UserId": 1,
              "ItemId": 1,
              "StatusFK": 1,
              "preprice": 1.1,
              "Date": "2019-02-20T06:25:20.9057989-06:00",
              "isActive": true,
              "Name": "sample string 2",
              "DateStr": "sample string 3",
              "Phone": "sample string 4",
              "PatientStatus": "sample string 5",
              "NationalId": "sample string 6",
              "Type": 1,
              "Hash": "sample string 7",
              "inv_id": 1,
              "ClinicName": "sample string 8",
              "isSend": true,
              "StatusTB": {
                "$ref": "6"
              },
              "UsersTB": {
                "$ref": "2"
              },
              "StrDate": "sample string 9"
            },
            {
              "$ref": "7"
            }
          ]
        },
        "UsersTB": {
          "$ref": "2"
        }
      },
      {
        "$ref": "3"
      }
    ],
    "BookingTBs": [
      {
        "$ref": "7"
      },
      {
        "$ref": "7"
      }
    ],
    "ChatTBs": [
      {
        "$id": "8",
        "Id": 1,
        "From": 1,
        "To": 1,
        "Msg": "sample string 2",
        "Date": "2019-02-20T06:25:20.9057989-06:00",
        "UsersTB": {
          "$ref": "2"
        },
        "UsersTB1": {
          "$ref": "2"
        }
      },
      {
        "$ref": "8"
      }
    ],
    "ChatTBs1": [
      {
        "$ref": "8"
      },
      {
        "$ref": "8"
      }
    ],
    "CityTB": {
      "$ref": "5"
    },
    "CountryTB": {
      "$id": "9",
      "Id": 1,
      "Country": "sample string 2",
      "Flag": "sample string 3",
      "isActive": true,
      "CountryAr": "sample string 5",
      "UsersTBs": [
        {
          "$ref": "2"
        },
        {
          "$ref": "2"
        }
      ]
    },
    "FavoritesTBs": [
      {
        "$id": "10",
        "Id": 1,
        "UserId": 1,
        "AdvertiseId": 1,
        "UsersTB": {
          "$ref": "2"
        },
        "UsersTB1": {
          "$ref": "2"
        }
      },
      {
        "$ref": "10"
      }
    ],
    "FavoritesTBs1": [
      {
        "$ref": "10"
      },
      {
        "$ref": "10"
      }
    ],
    "FilesTBs": [
      {
        "$id": "11",
        "Id": 1,
        "File": "sample string 2",
        "Image": "sample string 3",
        "UserId": 4,
        "ItemId": 1,
        "UsersTB": {
          "$ref": "2"
        },
        "UsersTB1": {
          "$ref": "2"
        }
      },
      {
        "$ref": "11"
      }
    ],
    "FilesTBs1": [
      {
        "$ref": "11"
      },
      {
        "$ref": "11"
      }
    ],
    "LocationTBs": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ],
    "MessagesTBs": [
      {
        "$id": "12",
        "Id": 1,
        "ChatUserId": 1,
        "SharedId": 1,
        "LastMessage": "sample string 2",
        "Date": "2019-02-20T06:25:20.9057989-06:00",
        "UsersTB": {
          "$ref": "2"
        },
        "UsersTB1": {
          "$ref": "2"
        }
      },
      {
        "$ref": "12"
      }
    ],
    "MessagesTBs1": [
      {
        "$ref": "12"
      },
      {
        "$ref": "12"
      }
    ],
    "MyClinicTBs": [
      {
        "$id": "13",
        "Id": 1,
        "Clinc": "sample string 2",
        "UserId": 1,
        "ItemId": 1,
        "UsersTB": {
          "$ref": "2"
        },
        "UsersTB1": {
          "$ref": "2"
        }
      },
      {
        "$ref": "13"
      }
    ],
    "MyClinicTBs1": [
      {
        "$ref": "13"
      },
      {
        "$ref": "13"
      }
    ],
    "SpecialistsTBs": [
      {
        "$id": "14",
        "Id": 1,
        "Name": "sample string 2",
        "Position": "sample string 3",
        "Desc": "sample string 4",
        "UserId": 1,
        "Image": "sample string 5",
        "Email": "sample string 6",
        "UsersTB": {
          "$ref": "2"
        }
      },
      {
        "$ref": "14"
      }
    ],
    "TypeTB": {
      "$id": "15",
      "Id": 1,
      "Type": "sample string 2",
      "TypeAr": "sample string 3",
      "UsersTBs": [
        {
          "$ref": "2"
        },
        {
          "$ref": "2"
        }
      ]
    },
    "UserHallsTBs": [
      {
        "$id": "16",
        "Id": 1,
        "UserId": 1,
        "HallId": 1,
        "isOpen": true,
        "HallsTB": {
          "$id": "17",
          "isOpen": true,
          "Floor": "sample string 2",
          "Court": "sample string 3",
          "isSet": true,
          "Id": 5,
          "Hall": "sample string 6",
          "FloorId": 1,
          "Start": "sample string 7",
          "isActive": true,
          "isManul": true,
          "UserHallsTBs": [
            {
              "$ref": "16"
            },
            {
              "$ref": "16"
            }
          ],
          "FloorsTB": {
            "$id": "18",
            "Id": 1,
            "Floor": "sample string 2",
            "CourtId": 1,
            "isActive": true,
            "Number": "sample string 4",
            "CourtsTB": {
              "$id": "19",
              "Id": 1,
              "Court": "sample string 2",
              "isActive": true,
              "FloorsTBs": [
                {
                  "$ref": "18"
                },
                {
                  "$ref": "18"
                }
              ],
              "WorkersTBs": [
                {
                  "$id": "20",
                  "Id": 1,
                  "Name": "sample string 2",
                  "Email": "sample string 3",
                  "Phone": "sample string 4",
                  "Password": "sample string 5",
                  "isActive": true,
                  "CourtId": 1,
                  "CourtsTB": {
                    "$ref": "19"
                  },
                  "NotificationTBs": [
                    {
                      "$id": "21",
                      "Id": 1,
                      "Noification": "sample string 2",
                      "isActive": true,
                      "UserId": 1,
                      "Date": "2019-02-20T06:25:20.9057989-06:00",
                      "StrDate": "sample string 4",
                      "HallId": 1,
                      "WorkerId": 1,
                      "HallsTB": {
                        "$ref": "17"
                      },
                      "WorkersTB": {
                        "$ref": "20"
                      }
                    },
                    {
                      "$ref": "21"
                    }
                  ]
                },
                {
                  "$ref": "20"
                }
              ]
            },
            "HallsTBs": [
              {
                "$ref": "17"
              },
              {
                "$ref": "17"
              }
            ]
          },
          "NotificationTBs": [
            {
              "$ref": "21"
            },
            {
              "$ref": "21"
            }
          ]
        },
        "UsersTB": {
          "$ref": "2"
        }
      },
      {
        "$ref": "16"
      }
    ]
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1