POST api/CRM/CreateTask

Request Information

URI Parameters

None.

Body Parameters

CRMCreateTaskRequestVM
NameDescriptionTypeAdditional information
SubAccountId

string

Required

ParentAccountId

string

Required

UserId

string

Required

Title

string

None.

Detail

string

Required

Due

DateTimeViewModel

None.

AssignedTo

CRMAssignedToRequestVM

None.

CompletedPercentage

integer

None.

Priority

CRMTaskPriority

None.

RepeatStartOption

CRMTaskRepeatStartOption

None.

RepeatSummary

CRMRepeatOptionsVM

None.

AllDay

boolean

None.

WithContactId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SubAccountId": "sample string 1",
  "ParentAccountId": "sample string 2",
  "UserId": "sample string 3",
  "Title": "sample string 4",
  "Detail": "sample string 5",
  "Due": {
    "Date": "2024-11-20T20:31:18.3141757+00:00",
    "Hour": 1,
    "Minute": 2,
    "AM": true
  },
  "AssignedTo": {
    "IsTeam": true,
    "Id": "sample string 2"
  },
  "CompletedPercentage": 6,
  "Priority": "Normal",
  "RepeatStartOption": "Never",
  "RepeatSummary": {
    "MonthlyOptionType": "None",
    "EndOption": "Never",
    "MonthlyFrequency": "None",
    "YearlyOptionType": "None",
    "WeeklyFrequency": "None",
    "MonthOnOptionType": "First",
    "MonthOnOptionValue": "Sunday",
    "YearlyOnOptionType": "First",
    "YearlyOnOptionValue": "Sunday",
    "DaysOfWeek": [
      "Sunday",
      "Sunday"
    ],
    "Month": 1,
    "EndAfterTimes": 2,
    "RepeatEndOnDate": "2024-11-20T20:31:18.3141757+00:00",
    "MonthDay": 3,
    "FrequencyLength": 4,
    "RecurringException": [
      "2024-11-20T20:31:18.3141757+00:00",
      "2024-11-20T20:31:18.3141757+00:00"
    ]
  },
  "AllDay": true,
  "WithContactId": "sample string 8"
}

application/xml, text/xml

Sample:
<CRMCreateTaskRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.CRM">
  <AllDay>true</AllDay>
  <AssignedTo>
    <Id>sample string 2</Id>
    <IsTeam>true</IsTeam>
  </AssignedTo>
  <CompletedPercentage>6</CompletedPercentage>
  <Detail>sample string 5</Detail>
  <Due xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommonModel">
    <d2p1:AM>true</d2p1:AM>
    <d2p1:Date>2024-11-20T20:31:18.3141757+00:00</d2p1:Date>
    <d2p1:Hour>1</d2p1:Hour>
    <d2p1:Minute>2</d2p1:Minute>
  </Due>
  <ParentAccountId>sample string 2</ParentAccountId>
  <Priority>Normal</Priority>
  <RepeatStartOption>Never</RepeatStartOption>
  <RepeatSummary>
    <DaysOfWeek xmlns:d3p1="http://schemas.datacontract.org/2004/07/MindMe.Shared.Common">
      <d3p1:DaysOfWeek>Sunday</d3p1:DaysOfWeek>
      <d3p1:DaysOfWeek>Sunday</d3p1:DaysOfWeek>
    </DaysOfWeek>
    <EndAfterTimes>2</EndAfterTimes>
    <EndOption>Never</EndOption>
    <FrequencyLength>4</FrequencyLength>
    <Month>1</Month>
    <MonthDay>3</MonthDay>
    <MonthOnOptionType>First</MonthOnOptionType>
    <MonthOnOptionValue>Sunday</MonthOnOptionValue>
    <MonthlyFrequency>None</MonthlyFrequency>
    <MonthlyOptionType>None</MonthlyOptionType>
    <RecurringException xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-11-20T20:31:18.3141757+00:00</d3p1:dateTime>
      <d3p1:dateTime>2024-11-20T20:31:18.3141757+00:00</d3p1:dateTime>
    </RecurringException>
    <RepeatEndOnDate>2024-11-20T20:31:18.3141757+00:00</RepeatEndOnDate>
    <WeeklyFrequency>None</WeeklyFrequency>
    <YearlyOnOptionType>First</YearlyOnOptionType>
    <YearlyOnOptionValue>Sunday</YearlyOnOptionValue>
    <YearlyOptionType>None</YearlyOptionType>
  </RepeatSummary>
  <SubAccountId>sample string 1</SubAccountId>
  <Title>sample string 4</Title>
  <UserId>sample string 3</UserId>
  <WithContactId>sample string 8</WithContactId>
</CRMCreateTaskRequestVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.