POST api/negotiator/my/preferences

Request Information

URI Parameters

None.

Body Parameters

SaveNegotiatorPreferencesCommandDataContract
NameDescriptionTypeAdditional information
CalendarViews

Collection of NegotiatorPreferencesCalendarViewDataContract

None.

Reminders

SaveNegotiatorPreferenceRemindersDataContract

None.

TaskReminders

SaveNegotiatorPreferenceRemindersDataContract

None.

Notifications

SaveNegotiatorPreferenceNotificationsDataContract

None.

Email

SaveNegotiatorPreferenceEmailDataContract

None.

Request Formats

application/json, text/json

Sample:
{
  "CalendarViews": [
    {
      "Name": "sample string 1",
      "UnattendedSelected": true,
      "Negotiators": [
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Id": 3
        },
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Id": 3
        }
      ],
      "NegotiatorOrder": [
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        },
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        }
      ],
      "CalendarViewType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "UnattendedSelected": true,
      "Negotiators": [
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Id": 3
        },
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Id": 3
        }
      ],
      "NegotiatorOrder": [
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        },
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        }
      ],
      "CalendarViewType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "Id": 3
    }
  ],
  "Reminders": {
    "ByEmail": true,
    "BySms": true,
    "ByNotification": true,
    "When": [
      {
        "Key": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Value": true,
        "Id": 2
      },
      {
        "Key": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Value": true,
        "Id": 2
      }
    ]
  },
  "TaskReminders": {
    "ByEmail": true,
    "BySms": true,
    "ByNotification": true,
    "When": [
      {
        "Key": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Value": true,
        "Id": 2
      },
      {
        "Key": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Value": true,
        "Id": 2
      }
    ]
  },
  "Notifications": {
    "ByEmail": true,
    "BySms": true,
    "ByNotification": true,
    "NotifyOf": [
      {
        "Key": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Value": true,
        "Id": 2
      },
      {
        "Key": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Value": true,
        "Id": 2
      }
    ]
  },
  "Email": {
    "SyncFlagged": true,
    "SyncFolder": true,
    "SyncInlineImages": true,
    "SmtpUsername": "sample string 4",
    "SmptPassword": "sample string 5",
    "ImapUsername": "sample string 6",
    "ImapPassword": "sample string 7"
  }
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveNegotiatorPreferencesCommandDataContract'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.