POST residentapi/myunits

Accepts a list of MyUnit object to update or insert new linked units.

Request Information

URI Parameters

None.

Body Parameters

Collection of MyUnitCreate
NameDescriptionTypeAdditional information
ConnectPropertyId

Property ID.

integer

Required

UserId

User ID.

integer

Required

C4UID

C4UID. Translates to Market Id.

string

Required

ConnectUnitId

Connect Unit ID.

integer

Required

ConnectResidentId

Connect Resident ID.

integer

Required

ResidentType

Resident Type. Translates to Role Id.

string

Required

UnitNumber

Unit Number.

string

Required

Address1

Address 1.

string

Required

Address2

Address 2.

string

None.

City

City.

string

Required

State

State.

string

Required

ZipCode

Zip Code.

string

Required

Country

Country.

string

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "connectPropertyId": 1,
    "userId": 2,
    "c4UID": "sample string 3",
    "connectUnitId": 1,
    "connectResidentId": 1,
    "residentType": "sample string 4",
    "unitNumber": "sample string 5",
    "address1": "sample string 6",
    "address2": "sample string 7",
    "city": "sample string 8",
    "state": "sample string 9",
    "zipCode": "sample string 10",
    "country": "sample string 11"
  },
  {
    "connectPropertyId": 1,
    "userId": 2,
    "c4UID": "sample string 3",
    "connectUnitId": 1,
    "connectResidentId": 1,
    "residentType": "sample string 4",
    "unitNumber": "sample string 5",
    "address1": "sample string 6",
    "address2": "sample string 7",
    "city": "sample string 8",
    "state": "sample string 9",
    "zipCode": "sample string 10",
    "country": "sample string 11"
  }
]

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MyUnit
NameDescriptionTypeAdditional information
MyUnitId

My Unit ID. Unique identifier of a unit.

integer

None.

PropertyId

Property ID.

integer

None.

UserId

User ID.

integer

None.

RoleId

Role ID.

integer

None.

Role

Role Object

CwsUserRole

None.

User

CwsUser Object

CwsUser

None.

MarketId

Market ID.

integer

None.

ConnectPropertyId

Connect Property ID.

integer

None.

ConnectUnitId

Connect Unit ID.

integer

None.

ConnectResidentId

Connect Resident ID.

integer

None.

IsLinked

Is Linked?

boolean

None.

IsDeleted

Is Deleted?

boolean

None.

IsActive

Is Active

boolean

None.

PropertyName

Property Name.

string

None.

SubDomain

SubDomain

string

None.

PropertyDisplayName

PropertyDisplayName. From the property configuration table (name displayed on the landing page)

string

None.

Addresses

Addresses. Addresses for the unit

Collection of CwsAddress

None.

Response Formats

application/json, text/json

Sample:
{
  "myUnitId": 1,
  "propertyId": 2,
  "userId": 3,
  "roleId": 4,
  "role": {
    "roleId": 1,
    "roleName": "sample string 2",
    "roleDescription": "sample string 3"
  },
  "user": {
    "userId": 1,
    "firstName": "sample string 2",
    "lastName": "sample string 3",
    "acceptedTermsAndConditions": true,
    "myUnits": [],
    "photos": [
      {
        "photoId": 1,
        "userId": 2,
        "fileUrl": "sample string 3",
        "isDefault": true
      },
      {
        "photoId": 1,
        "userId": 2,
        "fileUrl": "sample string 3",
        "isDefault": true
      }
    ],
    "userPhones": [
      {
        "phoneId": 1,
        "userId": 2,
        "phoneTypeId": 3,
        "phoneNumber": "sample string 4",
        "type": {
          "typeId": 1,
          "name": "sample string 2",
          "description": "sample string 3"
        },
        "countryCode": "sample string 5",
        "isVerified": true
      },
      {
        "phoneId": 1,
        "userId": 2,
        "phoneTypeId": 3,
        "phoneNumber": "sample string 4",
        "type": {
          "typeId": 1,
          "name": "sample string 2",
          "description": "sample string 3"
        },
        "countryCode": "sample string 5",
        "isVerified": true
      }
    ],
    "userEmails": [
      {
        "emailId": 1,
        "userId": 2,
        "emailTypeId": 3,
        "type": {
          "typeId": 1,
          "name": "sample string 2",
          "description": "sample string 3"
        },
        "email": "sample string 4",
        "isVerified": true
      },
      {
        "emailId": 1,
        "userId": 2,
        "emailTypeId": 3,
        "type": {
          "typeId": 1,
          "name": "sample string 2",
          "description": "sample string 3"
        },
        "email": "sample string 4",
        "isVerified": true
      }
    ],
    "committees": [
      {
        "userCommitteeId": 1,
        "committeeId": 2,
        "userId": 3,
        "startDate": "2025-12-24T09:12:05.9134288-05:00",
        "expirationDate": "2025-12-24T09:12:05.9134288-05:00",
        "propertyCommittee": {
          "property": {
            "propertyId": 1,
            "marketId": 2,
            "connectPropertyId": 3,
            "propertyName": "sample string 4"
          },
          "committeeID": 1,
          "propertyID": 2,
          "connectCommitteeID": 1,
          "name": "sample string 3",
          "description": "sample string 4",
          "isActive": true,
          "isDeleted": true,
          "isBoard": true
        }
      },
      {
        "userCommitteeId": 1,
        "committeeId": 2,
        "userId": 3,
        "startDate": "2025-12-24T09:12:05.9134288-05:00",
        "expirationDate": "2025-12-24T09:12:05.9134288-05:00",
        "propertyCommittee": {
          "property": {
            "propertyId": 1,
            "marketId": 2,
            "connectPropertyId": 3,
            "propertyName": "sample string 4"
          },
          "committeeID": 1,
          "propertyID": 2,
          "connectCommitteeID": 1,
          "name": "sample string 3",
          "description": "sample string 4",
          "isActive": true,
          "isDeleted": true,
          "isBoard": true
        }
      }
    ]
  },
  "marketId": 5,
  "connectPropertyId": 6,
  "connectUnitId": 7,
  "connectResidentId": 8,
  "isLinked": true,
  "isDeleted": true,
  "isActive": true,
  "propertyName": "sample string 12",
  "subDomain": "sample string 13",
  "propertyDisplayName": "sample string 14",
  "addresses": [
    {
      "addressId": 1,
      "myUnitId": 2,
      "addressTypeId": 3,
      "unitNumber": "sample string 4",
      "address1": "sample string 5",
      "address2": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "zip": "sample string 9",
      "country": "sample string 10",
      "type": {
        "typeId": 1,
        "name": "sample string 2",
        "description": "sample string 3"
      }
    },
    {
      "addressId": 1,
      "myUnitId": 2,
      "addressTypeId": 3,
      "unitNumber": "sample string 4",
      "address1": "sample string 5",
      "address2": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "zip": "sample string 9",
      "country": "sample string 10",
      "type": {
        "typeId": 1,
        "name": "sample string 2",
        "description": "sample string 3"
      }
    }
  ]
}