GET api/units/{unitId}/unitemails

Get unit emails by unit id

Request Information

Authentication

This method requires user authentication

URI Parameters

NameDescriptionTypeAdditional information
unitId

(Required)

integer

Required

Body Parameters

None.

Response Information

Resource Description

UnitEmail
NameDescriptionTypeAdditional information
EmailId

Email Id

integer

None.

PropertyId

Property Id

integer

None.

UnitId

Unit Id

integer

None.

SendAsUserId

Send As User Id

integer

None.

From

Email From

string

None.

To

Email To

string

None.

CC

Email CC

string

None.

BCC

Email BCC

string

None.

Subject

Email Subject

string

None.

Body

Email Body

string

None.

Response Formats

application/json, text/json

Sample:
{
  "EmailId": 1,
  "PropertyId": 2,
  "UnitId": 3,
  "SendAsUserId": 4,
  "From": "sample string 5",
  "To": "sample string 6",
  "CC": "sample string 7",
  "BCC": "sample string 8",
  "Subject": "sample string 9",
  "Body": "sample string 10"
}

Internal Error Codes

  • 106: ResourceNotFound
    (The requested resource was not found., NotFound)
  • 100: MissingRequiredHeader
    (Invalid request format. A required HTTP header was not specified., BadRequest)
  • 118: InvalidHeaderValue
    (The value provided for one of the HTTP headers was not in the correct format., BadRequest)
  • 199: UnknownError
    (Internal server error., InternalServerError)
  • 105: ResourceNotLinkedToUser
    (User is trying to access a resource that belongs to a property not linked to the user., Forbidden)