PUT api/v1/teamdata/datasets/{id}

This method updates a dataset that has been then sent to a group list or contact list with the unique Id. The dataset can be set to be repeated by setting the start date and end date, or having occurrences that will allow the dataset to repeat itself.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

TwoSms.CustomerPortalRole.API.TeamData.DataSet
NameDescriptionTypeAdditional information
DataSetID

This is the data set id where the dataset will be added.

globally unique identifier

Required

TeamDataSetID

This is the team data set id where the dataset will be added.

globally unique identifier

Required

Name

This is the name of the new team data.

string

Required

StartDate

The date of when the dataset created will start.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

EndDate

The date of when the dataset created will end.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

DateInsert

The date of when the dataset is inserted.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

Repeat

Use Yes or No to set the repeats for the dataset.

boolean

Required

RepeatTime

Times that the dataset should be repeated.

string

Required

Occurrences

Occurences

string

Required

Days

string

Required

Hours

string

Required

Minutes

string

Required

ResendLinks

Use Yes or No to resend the existing links.

boolean

Required

Enabled

Use Yes or No to enable or disable the question set DateEnd.

boolean

Required

AllowChangeStartDate

boolean

Required

NotificationSettings

Notification settings for the dataset

TwoSms.CustomerPortalRole.API.TeamData.TeamDataNotification

Required

Request Formats

application/json, text/json

Sample:
{
  "DataSetID": "56e4c76d-9c23-45ff-ac45-ba5083a7aae7",
  "TeamDataSetID": "c489e936-ec9d-425a-bbef-cd84c463483b",
  "Name": "sample string 3",
  "StartDate": "2024-03-29T09:40:43.0022412+00:00",
  "EndDate": "2024-03-29T09:40:43.0022412+00:00",
  "DateInsert": "2024-03-29T09:40:43.0022412+00:00",
  "DateModified": "2024-03-29T09:40:43.0022412+00:00",
  "Repeat": true,
  "RepeatTime": "sample string 6",
  "Occurrences": "sample string 7",
  "Days": "sample string 8",
  "Hours": "sample string 9",
  "Minutes": "sample string 10",
  "ResendLinks": true,
  "Enabled": true,
  "AllowChangeStartDate": true,
  "NotificationSettings": {
    "Notification": true,
    "Sms": true,
    "Email": true,
    "ExpireSMS": true,
    "ExpireEmail": true,
    "NonRespondentsSMS": true,
    "NonRespondentsEmail": true
  }
}

application/xml, text/xml

Sample:
<DataSet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DataSetID>56e4c76d-9c23-45ff-ac45-ba5083a7aae7</DataSetID>
  <TeamDataSetID>c489e936-ec9d-425a-bbef-cd84c463483b</TeamDataSetID>
  <Name>sample string 3</Name>
  <StartDate>2024-03-29T09:40:43.0022412+00:00</StartDate>
  <EndDate>2024-03-29T09:40:43.0022412+00:00</EndDate>
  <DateInsert>2024-03-29T09:40:43.0022412+00:00</DateInsert>
  <DateModified>2024-03-29T09:40:43.0022412+00:00</DateModified>
  <Repeat>true</Repeat>
  <RepeatTime>sample string 6</RepeatTime>
  <Occurrences>sample string 7</Occurrences>
  <Days>sample string 8</Days>
  <Hours>sample string 9</Hours>
  <Minutes>sample string 10</Minutes>
  <ResendLinks>true</ResendLinks>
  <Enabled>true</Enabled>
  <AllowChangeStartDate>true</AllowChangeStartDate>
  <NotificationSettings>
    <Notification>true</Notification>
    <Sms>true</Sms>
    <Email>true</Email>
    <ExpireSMS>true</ExpireSMS>
    <ExpireEmail>true</ExpireEmail>
    <NonRespondentsSMS>true</NonRespondentsSMS>
    <NonRespondentsEmail>true</NonRespondentsEmail>
  </NotificationSettings>
</DataSet>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'TwoSms.CustomerPortalRole.API.TeamData.DataSet'.

Response Information

Resource Description

TwoSms.CustomerPortalRole.API.Misc.ResponseOfSystem.Object
NameDescriptionTypeAdditional information
Error

TwoSms.CustomerPortalRole.API.Misc.Error

None.

ResponseData

TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfSystem.Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {}
  }
}

application/xml, text/xml

Sample:
<ResponseOfObject 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 />
  </ResponseData>
</ResponseOfObject>