POST api/Settings/{userid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userid

integer

Required

Body Parameters

UserSettings
NameDescriptionTypeAdditional information
UserID

integer

None.

IsPublic

boolean

None.

UseImg

boolean

None.

VisibilityType

integer

None.

Schedule

Collection of VisibilityTimeCode

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "IsPublic": true,
  "UseImg": true,
  "VisibilityType": 1,
  "Schedule": [
    {
      "VisibilityTimeCodeID": 1,
      "StartTime": "2018-06-22T23:06:24.134298-07:00",
      "EndTime": "2018-06-22T23:06:24.134298-07:00",
      "Day": 5
    },
    {
      "VisibilityTimeCodeID": 1,
      "StartTime": "2018-06-22T23:06:24.134298-07:00",
      "EndTime": "2018-06-22T23:06:24.134298-07:00",
      "Day": 5
    }
  ]
}

application/xml, text/xml

Sample:
<UserSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PulseAPI.Controllers">
  <IsPublic>true</IsPublic>
  <Schedule xmlns:d2p1="http://schemas.datacontract.org/2004/07/PulseAPI.Models">
    <d2p1:VisibilityTimeCode>
      <d2p1:Day>5</d2p1:Day>
      <d2p1:EndTime>2018-06-22T23:06:24.134298-07:00</d2p1:EndTime>
      <d2p1:StartTime>2018-06-22T23:06:24.134298-07:00</d2p1:StartTime>
      <d2p1:VisibilityTimeCodeID>1</d2p1:VisibilityTimeCodeID>
    </d2p1:VisibilityTimeCode>
    <d2p1:VisibilityTimeCode>
      <d2p1:Day>5</d2p1:Day>
      <d2p1:EndTime>2018-06-22T23:06:24.134298-07:00</d2p1:EndTime>
      <d2p1:StartTime>2018-06-22T23:06:24.134298-07:00</d2p1:StartTime>
      <d2p1:VisibilityTimeCodeID>1</d2p1:VisibilityTimeCodeID>
    </d2p1:VisibilityTimeCode>
  </Schedule>
  <UseImg>true</UseImg>
  <UserID>1</UserID>
  <VisibilityType>1</VisibilityType>
</UserSettings>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.