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

This method updates the team data by updating a specific field such as comment, date insert, name or updating and editing the contacts in team data.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

TeamdataApi
NameDescriptionTypeAdditional 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 TupleOfStringAndInt32AndInt32

Required

TeamDataContacts

The contacts of the team data.

TeamDataContact

Required

TeamDataNotifications

The team data notifications.

TeamDataNotification

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "915c265a-0bf2-41fc-b0a0-255b42216e9f",
  "CreatedBy": "91d21b6f-5e68-4097-aff6-76b77d7cb72c",
  "DateInsert": "2017-11-17T16:00:07.2825865Z",
  "DateModified": "2017-11-17T16:00:07.2825865Z",
  "Name": "sample string 4",
  "Comment": "sample string 5",
  "DateToSend": "2017-11-17T16:00:07.2825865Z",
  "EndDate": "2017-11-17T16:00:07.2825865Z",
  "DateToEnd": "2017-11-17T16:00:07.2825865Z",
  "Repeat": true,
  "RepeatTime": "sample string 7",
  "SenderName": "sample string 8",
  "Occurrences": "sample string 9",
  "QuestionsList": [
    {
      "m_Item1": "sample string 1",
      "m_Item2": 2,
      "m_Item3": 3
    },
    {
      "m_Item1": "sample string 1",
      "m_Item2": 2,
      "m_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
  }
}

Response Information

Resource Description

ResponseOfSmsTransaction
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfSmsTransaction

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": {
      "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

Sample:
<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>