POST api/negotiator/my/preferences

Save or Update Negotiator Preferences

Request Information

URI Parameters

None.

Body Parameters

Dezrez.Core.DataContracts.External.Api.Negotiators.Command.SaveNegotiatorPreferencesCommandDataContract
NameDescriptionTypeAdditional information
CalendarViews

Collection of Dezrez.Core.DataContracts.External.Api.Negotiators.Query.Get.NegotiatorPreferencesCalendarViewDataContract

None.

Reminders

Dezrez.Core.DataContracts.External.Api.Negotiators.Command.SaveNegotiatorPreferenceRemindersDataContract

None.

TaskReminders

Dezrez.Core.DataContracts.External.Api.Negotiators.Command.SaveNegotiatorPreferenceRemindersDataContract

None.

Notifications

Dezrez.Core.DataContracts.External.Api.Negotiators.Command.SaveNegotiatorPreferenceNotificationsDataContract

None.

Email

Dezrez.Core.DataContracts.External.Api.Negotiators.Command.SaveNegotiatorPreferenceEmailDataContract

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "CalendarViews": [
    {
      "Name": "sample string 1",
      "UnattendedSelected": true,
      "Negotiators": [
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Inactive": true,
          "Id": 4
        },
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Inactive": true,
          "Id": 4
        }
      ],
      "NegotiatorOrder": [
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        },
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        }
      ],
      "CalendarViewType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "IncludeInactiveNegotiators": true,
      "Id": 4
    },
    {
      "Name": "sample string 1",
      "UnattendedSelected": true,
      "Negotiators": [
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Inactive": true,
          "Id": 4
        },
        {
          "Name": "sample string 1",
          "Email": "sample string 2",
          "Inactive": true,
          "Id": 4
        }
      ],
      "NegotiatorOrder": [
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        },
        {
          "NegotiatorId": 1,
          "Order": 2,
          "Id": 3
        }
      ],
      "CalendarViewType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "IncludeInactiveNegotiators": true,
      "Id": 4
    }
  ],
  "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"
  }
}

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.