POST api/CRM/CreateAppointmentType
Request Information
URI Parameters
None.
Body Parameters
CRMCreateCallTypeAndAppointmentTypeRequestVMName | Description | Type | Additional information |
---|---|---|---|
SubAccountId | string |
Required |
|
UserId | string |
Required |
|
ParentAccountId | string |
Required |
|
Name | string |
Required |
|
Duration | CRMCallDurationRequestVM |
Required |
|
FontColor | ColorViewModel |
Required |
|
BackgroundColor | ColorViewModel |
Required |
|
ResultIds | Collection of string |
Required |
|
ResultOutComeMapping | Collection of ResultOutComeMappingRequestVM |
Required |
|
AccessDetails | CRMAccessDetailsVM |
None. |
|
RepeatSummary | CRMRepeatOptionsVM |
None. |
|
RepeatStartOption | CRMTaskRepeatStartOption |
None. |
Request Formats
application/json, text/json
Sample:
{ "SubAccountId": "sample string 1", "UserId": "sample string 2", "ParentAccountId": "sample string 3", "Name": "sample string 4", "Duration": { "Hour": 1, "Minutes": 2, "AllDay": true }, "FontColor": { "HexValue": "sample string 1", "RgbValue": { "R": "sample string 1", "G": "sample string 2", "B": "sample string 3", "A": "sample string 4" }, "Gradient": "sample string 2" }, "BackgroundColor": { "HexValue": "sample string 1", "RgbValue": { "R": "sample string 1", "G": "sample string 2", "B": "sample string 3", "A": "sample string 4" }, "Gradient": "sample string 2" }, "ResultIds": [ "sample string 1", "sample string 2" ], "ResultOutComeMapping": [ { "ResultId": "sample string 1", "OutComeIds": [ "sample string 1", "sample string 2" ] }, { "ResultId": "sample string 1", "OutComeIds": [ "sample string 1", "sample string 2" ] } ], "AccessDetails": { "TeamUserSaveType": "All", "UserAndTeams": [ { "IsTeam": true, "Id": "sample string 2" }, { "IsTeam": true, "Id": "sample string 2" } ] }, "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-21T08:44:23.3005971+00:00", "MonthDay": 3, "FrequencyLength": 4, "RecurringException": [ "2024-11-21T08:44:23.3005971+00:00", "2024-11-21T08:44:23.3005971+00:00" ] }, "RepeatStartOption": "Never" }
application/xml, text/xml
Sample:
<CRMCreateCallTypeAndAppointmentTypeRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.CRM"> <AccessDetails> <TeamUserSaveType>All</TeamUserSaveType> <UserAndTeams> <CRMAssignedToRequestVM> <Id>sample string 2</Id> <IsTeam>true</IsTeam> </CRMAssignedToRequestVM> <CRMAssignedToRequestVM> <Id>sample string 2</Id> <IsTeam>true</IsTeam> </CRMAssignedToRequestVM> </UserAndTeams> </AccessDetails> <BackgroundColor xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.Elements"> <d2p1:Gradient>sample string 2</d2p1:Gradient> <d2p1:HexValue>sample string 1</d2p1:HexValue> <d2p1:RgbValue> <d2p1:A>sample string 4</d2p1:A> <d2p1:B>sample string 3</d2p1:B> <d2p1:G>sample string 2</d2p1:G> <d2p1:R>sample string 1</d2p1:R> </d2p1:RgbValue> </BackgroundColor> <Duration> <AllDay>true</AllDay> <Hour>1</Hour> <Minutes>2</Minutes> </Duration> <FontColor xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.Elements"> <d2p1:Gradient>sample string 2</d2p1:Gradient> <d2p1:HexValue>sample string 1</d2p1:HexValue> <d2p1:RgbValue> <d2p1:A>sample string 4</d2p1:A> <d2p1:B>sample string 3</d2p1:B> <d2p1:G>sample string 2</d2p1:G> <d2p1:R>sample string 1</d2p1:R> </d2p1:RgbValue> </FontColor> <Name>sample string 4</Name> <ParentAccountId>sample string 3</ParentAccountId> <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-21T08:44:23.3005971+00:00</d3p1:dateTime> <d3p1:dateTime>2024-11-21T08:44:23.3005971+00:00</d3p1:dateTime> </RecurringException> <RepeatEndOnDate>2024-11-21T08:44:23.3005971+00:00</RepeatEndOnDate> <WeeklyFrequency>None</WeeklyFrequency> <YearlyOnOptionType>First</YearlyOnOptionType> <YearlyOnOptionValue>Sunday</YearlyOnOptionValue> <YearlyOptionType>None</YearlyOptionType> </RepeatSummary> <ResultIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ResultIds> <ResultOutComeMapping> <ResultOutComeMappingRequestVM> <OutComeIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </OutComeIds> <ResultId>sample string 1</ResultId> </ResultOutComeMappingRequestVM> <ResultOutComeMappingRequestVM> <OutComeIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </OutComeIds> <ResultId>sample string 1</ResultId> </ResultOutComeMappingRequestVM> </ResultOutComeMapping> <SubAccountId>sample string 1</SubAccountId> <UserId>sample string 2</UserId> </CRMCreateCallTypeAndAppointmentTypeRequestVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.