PUT api/Users/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PermissionPostDTO
NameDescriptionTypeAdditional information
Username

string

None.

PermissionTypeIds

Collection of integer

None.

DefaultLocationId

integer

None.

DefaultAreaId

integer

None.

DefaultSeatId

integer

None.

ReceiveNotificationsCheckInClosing

boolean

None.

ReceiveNotificationsCheckInOpen

boolean

None.

ReceiveNotificationsSystem

boolean

None.

IsGroup

boolean

None.

BookSeatForEveryday

boolean

None.

AutoBookingSettings

PermissionsAutoBookingSettingsDTO

None.

LanguageId

integer

None.

NormTidStartHour

integer

None.

NormTidStartMinute

integer

None.

NormTidEndHour

integer

None.

NormTidEndMinute

integer

None.

NormTidAutoRegister

boolean

None.

NormTidRegistrationTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "PermissionTypeIds": [
    1,
    2
  ],
  "DefaultLocationId": 2,
  "DefaultAreaId": 3,
  "DefaultSeatId": 4,
  "ReceiveNotificationsCheckInClosing": true,
  "ReceiveNotificationsCheckInOpen": true,
  "ReceiveNotificationsSystem": true,
  "IsGroup": true,
  "BookSeatForEveryday": true,
  "AutoBookingSettings": {
    "Monday": true,
    "Tuesday": true,
    "Wednesday": true,
    "Thursday": true,
    "Friday": true,
    "BookFrom": "2025-12-05T10:22:05.5995937+00:00",
    "BookTo": "2025-12-05T10:22:05.5995937+00:00"
  },
  "LanguageId": 10,
  "NormTidStartHour": 1,
  "NormTidStartMinute": 1,
  "NormTidEndHour": 1,
  "NormTidEndMinute": 1,
  "NormTidAutoRegister": true,
  "NormTidRegistrationTypeId": 1
}

application/xml, text/xml

Sample:
<PermissionPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Admin">
  <AutoBookingSettings>
    <BookFrom>2025-12-05T10:22:05.5995937+00:00</BookFrom>
    <BookTo>2025-12-05T10:22:05.5995937+00:00</BookTo>
    <Friday>true</Friday>
    <Monday>true</Monday>
    <Thursday>true</Thursday>
    <Tuesday>true</Tuesday>
    <Wednesday>true</Wednesday>
  </AutoBookingSettings>
  <BookSeatForEveryday>true</BookSeatForEveryday>
  <DefaultAreaId>3</DefaultAreaId>
  <DefaultLocationId>2</DefaultLocationId>
  <DefaultSeatId>4</DefaultSeatId>
  <IsGroup>true</IsGroup>
  <LanguageId>10</LanguageId>
  <NormTidAutoRegister>true</NormTidAutoRegister>
  <NormTidEndHour>1</NormTidEndHour>
  <NormTidEndMinute>1</NormTidEndMinute>
  <NormTidRegistrationTypeId>1</NormTidRegistrationTypeId>
  <NormTidStartHour>1</NormTidStartHour>
  <NormTidStartMinute>1</NormTidStartMinute>
  <PermissionTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </PermissionTypeIds>
  <ReceiveNotificationsCheckInClosing>true</ReceiveNotificationsCheckInClosing>
  <ReceiveNotificationsCheckInOpen>true</ReceiveNotificationsCheckInOpen>
  <ReceiveNotificationsSystem>true</ReceiveNotificationsSystem>
  <Username>sample string 1</Username>
</PermissionPostDTO>

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 'PermissionPostDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.