POST api/v1/teamdata/teamdatas
This method posts a new team data, it creates a new question list that can then be sent to your already existing team data contacts, groups or new contacts.
Request Information
URI Parameters
None.
Body Parameters
TwoSms.CustomerPortalRole.API.TeamData.TeamdataApiName | Description | Type | Additional information |
---|---|---|---|
Id |
The account id. |
globally unique identifier |
Required |
CreatedBy |
The id of the person |
globally unique identifier |
Required |
DateInsert |
The date of when the dataset is modified.The format is the following:[YYYY-MM-DDTHH:MM:SSZ]. (The system will not validate if the date it's in the past). |
date |
Required |
DateModified |
The date of when the dataset is modified.The format is the following:[YYYY-MM-DDTHH:MM:SSZ]. (The system will not validate if the date it's in the past). |
date |
Required |
Name |
The Name for the team data. |
string |
Required |
Comment |
The Comment for the team data. |
string |
Required |
DateToSend |
The date to send the team data. The format is the following:[YYYY-MM-DDTHH:MM:SS]. (The system will not validate if the date it's in the past). |
date |
Required |
EndDate |
The end date of the team data. The format is the following:[YYYY-MM-DDTHH:MM:SS]. (The system will not validate if the date it's in the past). |
date |
Required |
DateToEnd |
The date to end the team data. The format is the following:[YYYY-MM-DDTHH:MM:SS]. (The system will not validate if the date it's in the past). |
date |
Required |
Repeat |
Use Yes or No to repeat the team data. |
boolean |
Required |
RepeatTime |
How many times ro repeat the team data. |
string |
Required |
SenderName |
The name of the sender. |
string |
Required |
Occurrences |
Occurences |
string |
Required |
QuestionsList |
List of the questions. |
Collection of System.TupleOfSystem.StringAndSystem.Int32AndSystem.Int32 |
Required |
TeamDataContacts |
The contacts of the team data. |
TwoSms.CustomerPortalRole.API.TeamData.TeamDataContact |
Required |
TeamDataNotifications |
The team data notifications. |
TwoSms.CustomerPortalRole.API.TeamData.TeamDataNotification |
None. |
Request Formats
application/json, text/json
{ "Id": "f32aa0c1-4df9-493a-b3d1-99e023690ac3", "CreatedBy": "e71c59c4-f290-4c7d-a310-96908af518d7", "DateInsert": "2024-11-21T08:30:14.8853641+00:00", "DateModified": "2024-11-21T08:30:14.8853641+00:00", "Name": "sample string 4", "Comment": "sample string 5", "DateToSend": "2024-11-21T08:30:14.8853641+00:00", "EndDate": "2024-11-21T08:30:14.8853641+00:00", "DateToEnd": "2024-11-21T08:30:14.8853641+00:00", "Repeat": true, "RepeatTime": "sample string 7", "SenderName": "sample string 8", "Occurrences": "sample string 9", "QuestionsList": [ { "Item1": "sample string 1", "Item2": 2, "Item3": 3 }, { "Item1": "sample string 1", "Item2": 2, "Item3": 3 } ], "TeamDataContacts": { "Contacts": { "1": { "NONE": 0 }, "2": { "NONE": 0 } }, "NewContacts": { "1": { "NONE": 0 }, "2": { "NONE": 0 } }, "Groups": { "sample string 1": { "NONE": 0 }, "sample string 2": { "NONE": 0 } } }, "TeamDataNotifications": { "Notification": true, "Sms": true, "Email": true, "ExpireSMS": true, "ExpireEmail": true, "NonRespondentsSMS": true, "NonRespondentsEmail": true } }
application/x-www-form-urlencoded
Response Information
Resource Description
TwoSms.CustomerPortalRole.API.Misc.ResponseOfTwoSms.CustomerPortalRole.API.SMS.SmsTransactionName | Description | Type | Additional information |
---|---|---|---|
Error | TwoSms.CustomerPortalRole.API.Misc.Error |
None. |
|
ResponseData | TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfTwoSms.CustomerPortalRole.API.SMS.SmsTransaction |
None. |
Response Formats
application/json, text/json
{ "Error": { "ErrorCode": "sample string 1", "ErrorReason": "sample string 2" }, "ResponseData": { "Identification": { "UserId": "sample string 1" }, "Result": "sample string 1", "Detail": { "MessageID": "sample string 1", "NoOfContacts": "sample string 2", "NoOfQuickRecipients": "sample string 3", "NoOfSMS": "sample string 4", "NoOfEmails": "sample string 5", "PreTransaction": "sample string 6", "PostTransaction": "sample string 7", "CreditsUsed": "sample string 8", "MessageText": "sample string 9" } } }
application/xml, text/xml
<ResponseOfSmsTransaction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Error> <ErrorCode>sample string 1</ErrorCode> <ErrorReason>sample string 2</ErrorReason> </Error> <ResponseData> <Result>sample string 1</Result> <Identification> <UserId>sample string 1</UserId> </Identification> <Detail> <MessageID>sample string 1</MessageID> <NoOfContacts>sample string 2</NoOfContacts> <NoOfQuickRecipients>sample string 3</NoOfQuickRecipients> <NoOfSMS>sample string 4</NoOfSMS> <NoOfEmails>sample string 5</NoOfEmails> <PreTransaction>sample string 6</PreTransaction> <PostTransaction>sample string 7</PostTransaction> <CreditsUsed>sample string 8</CreditsUsed> <MessageText>sample string 9</MessageText> </Detail> </ResponseData> </ResponseOfSmsTransaction>