GET api/Settings/{userid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userid

integer

Required

Body Parameters

None.

Response Information

Resource Description

UserSettings
NameDescriptionTypeAdditional information
UserID

integer

None.

IsPublic

boolean

None.

UseImg

boolean

None.

VisibilityType

integer

None.

Schedule

Collection of VisibilityTimeCode

None.

Response Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "IsPublic": true,
  "UseImg": true,
  "VisibilityType": 1,
  "Schedule": [
    {
      "VisibilityTimeCodeID": 1,
      "StartTime": "2018-06-22T23:10:17.6330643-07:00",
      "EndTime": "2018-06-22T23:10:17.6330643-07:00",
      "Day": 5
    },
    {
      "VisibilityTimeCodeID": 1,
      "StartTime": "2018-06-22T23:10:17.6330643-07:00",
      "EndTime": "2018-06-22T23:10:17.6330643-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:10:17.6330643-07:00</d2p1:EndTime>
      <d2p1:StartTime>2018-06-22T23:10:17.6330643-07:00</d2p1:StartTime>
      <d2p1:VisibilityTimeCodeID>1</d2p1:VisibilityTimeCodeID>
    </d2p1:VisibilityTimeCode>
    <d2p1:VisibilityTimeCode>
      <d2p1:Day>5</d2p1:Day>
      <d2p1:EndTime>2018-06-22T23:10:17.6330643-07:00</d2p1:EndTime>
      <d2p1:StartTime>2018-06-22T23:10:17.6330643-07:00</d2p1:StartTime>
      <d2p1:VisibilityTimeCodeID>1</d2p1:VisibilityTimeCodeID>
    </d2p1:VisibilityTimeCode>
  </Schedule>
  <UseImg>true</UseImg>
  <UserID>1</UserID>
  <VisibilityType>1</VisibilityType>
</UserSettings>