POST api/Activity

Create a new activity for a specific customer Required: SiteOwnerId, Subject, ActivityType. Returns: ActivityId

Request Information

URI Parameters

None.

Body Parameters

the Activity Model containing properties for populating a new Activity

ActivityModel
NameDescriptionTypeAdditional information
SiteOwnerId

integer

Required

CustomerRefCode

string

Max length: 200

CustomerId

integer

None.

Subject

string

Required

Max length: 150

Description

string

None.

ContactEmail

string

Max length: 150

UserEmail

string

Max length: 150

Status

string

None.

ActivityType

string

Required

ActivityDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteOwnerId": 1,
  "CustomerRefCode": "sample string 2",
  "CustomerId": 3,
  "Subject": "sample string 4",
  "Description": "sample string 5",
  "ContactEmail": "sample string 6",
  "UserEmail": "sample string 7",
  "Status": "sample string 8",
  "ActivityType": "sample string 9",
  "ActivityDate": "2019-07-16T20:59:50.4120862+12:00"
}

application/xml, text/xml

Sample:
<ActivityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExsalerateWebAPI.Models">
  <ActivityDate>2019-07-16T20:59:50.4120862+12:00</ActivityDate>
  <ActivityType>sample string 9</ActivityType>
  <ContactEmail>sample string 6</ContactEmail>
  <CustomerId>3</CustomerId>
  <CustomerRefCode>sample string 2</CustomerRefCode>
  <Description>sample string 5</Description>
  <SiteOwnerId>1</SiteOwnerId>
  <Status>sample string 8</Status>
  <Subject>sample string 4</Subject>
  <UserEmail>sample string 7</UserEmail>
</ActivityModel>

application/x-www-form-urlencoded

Sample:
SiteOwnerId=1&CustomerRefCode=abc&CustomerId=2&Subject=Foo&Description=BarActivityType=test

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.