PUT api/v1/bots/twitterbots/{id}

Modify TwitterBot details

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

UpdateTwitterBotDto
NameDescriptionTypeAdditional information
Enabled

boolean

None.

DisplayName

string

None.

StatusPostSettings

Settings governing the tweeting of status posts.

StatusPostSettingsDto

None.

TweetSettings

TweetSettingsDto

None.

ScheduledTweets

Collection of ScheduledTweetSettingsDto

None.

Request Formats

application/json, text/json, application/senml+json

Sample:
{
  "Enabled": true,
  "DisplayName": "sample string 2",
  "StatusPostSettings": {
    "UserIds": [
      "16f02446-810b-4f17-a722-70d11dbe1dbc",
      "381ac8c5-ef87-4a73-ab6d-8e0369a98174"
    ],
    "TweetStatusPostsTagged": "sample string 1"
  },
  "TweetSettings": {
    "PostMentions": true,
    "Tag": "sample string 2",
    "TweetPrefix": "sample string 3",
    "TweetSuffix": "sample string 4"
  },
  "ScheduledTweets": [
    {
      "Name": "sample string 1",
      "Interval": 2,
      "DeviceId": "360edb0c-329a-4a70-be75-1f855b984e67",
      "Message": "sample string 4",
      "Conditions": [
        {
          "DeviceId": "ba2ccb1d-a7e7-46de-bf3b-86c884afa91e",
          "FieldName": "sample string 1",
          "Operation": "sample string 2",
          "Value": 3.0
        },
        {
          "DeviceId": "ba2ccb1d-a7e7-46de-bf3b-86c884afa91e",
          "FieldName": "sample string 1",
          "Operation": "sample string 2",
          "Value": 3.0
        }
      ]
    },
    {
      "Name": "sample string 1",
      "Interval": 2,
      "DeviceId": "360edb0c-329a-4a70-be75-1f855b984e67",
      "Message": "sample string 4",
      "Conditions": [
        {
          "DeviceId": "ba2ccb1d-a7e7-46de-bf3b-86c884afa91e",
          "FieldName": "sample string 1",
          "Operation": "sample string 2",
          "Value": 3.0
        },
        {
          "DeviceId": "ba2ccb1d-a7e7-46de-bf3b-86c884afa91e",
          "FieldName": "sample string 1",
          "Operation": "sample string 2",
          "Value": 3.0
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<UpdateTwitterBotDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots.TwitterBot">
  <DisplayName>sample string 2</DisplayName>
  <Enabled>true</Enabled>
  <ScheduledTweets>
    <ScheduledTweetSettingsDto>
      <Conditions>
        <ConditionDto>
          <DeviceId>ba2ccb1d-a7e7-46de-bf3b-86c884afa91e</DeviceId>
          <FieldName>sample string 1</FieldName>
          <Operation>sample string 2</Operation>
          <Value>3</Value>
        </ConditionDto>
        <ConditionDto>
          <DeviceId>ba2ccb1d-a7e7-46de-bf3b-86c884afa91e</DeviceId>
          <FieldName>sample string 1</FieldName>
          <Operation>sample string 2</Operation>
          <Value>3</Value>
        </ConditionDto>
      </Conditions>
      <DeviceId>360edb0c-329a-4a70-be75-1f855b984e67</DeviceId>
      <Interval>2</Interval>
      <Message>sample string 4</Message>
      <Name>sample string 1</Name>
    </ScheduledTweetSettingsDto>
    <ScheduledTweetSettingsDto>
      <Conditions>
        <ConditionDto>
          <DeviceId>ba2ccb1d-a7e7-46de-bf3b-86c884afa91e</DeviceId>
          <FieldName>sample string 1</FieldName>
          <Operation>sample string 2</Operation>
          <Value>3</Value>
        </ConditionDto>
        <ConditionDto>
          <DeviceId>ba2ccb1d-a7e7-46de-bf3b-86c884afa91e</DeviceId>
          <FieldName>sample string 1</FieldName>
          <Operation>sample string 2</Operation>
          <Value>3</Value>
        </ConditionDto>
      </Conditions>
      <DeviceId>360edb0c-329a-4a70-be75-1f855b984e67</DeviceId>
      <Interval>2</Interval>
      <Message>sample string 4</Message>
      <Name>sample string 1</Name>
    </ScheduledTweetSettingsDto>
  </ScheduledTweets>
  <StatusPostSettings>
    <TweetStatusPostsTagged>sample string 1</TweetStatusPostsTagged>
    <UserIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>16f02446-810b-4f17-a722-70d11dbe1dbc</d3p1:guid>
      <d3p1:guid>381ac8c5-ef87-4a73-ab6d-8e0369a98174</d3p1:guid>
    </UserIds>
  </StatusPostSettings>
  <TweetSettings>
    <PostMentions>true</PostMentions>
    <Tag>sample string 2</Tag>
    <TweetPrefix>sample string 3</TweetPrefix>
    <TweetSuffix>sample string 4</TweetSuffix>
  </TweetSettings>
</UpdateTwitterBotDto>

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, application/senml+json

Sample:

Sample not available.