PATCH api/Account/UpdateUser

Oppdaterer brukerinformasjon inkludert roller og kommentarer

Request Information

URI Parameters

None.

Body Parameters

UpdateUserBindingModel
NameDescriptionTypeAdditional information
Email

string

Required

FirstName

string

Required

LastName

string

Required

CurrentCompanyId

globally unique identifier

None.

CompanyId

globally unique identifier

None.

UserId

string

None.

Address

string

None.

PostalAddress

string

None.

PostalCode

string

None.

IdrettsLagId

globally unique identifier

None.

ClubId

string

None.

TeamId

string

None.

Phone

string

None.

BirthDay

date

Required

Roles

Collection of RollerBindingModel

None.

SendReminder

boolean

None.

ExtendedProfile

UserExtendedProfile

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "currentCompanyId": "804a8d5b-ea7f-4804-b378-21dfde29629b",
  "companyId": "cfa6cd0e-0e3a-4231-9b3f-32ff3e72cfb6",
  "userId": "sample string 6",
  "address": "sample string 7",
  "postalAddress": "sample string 8",
  "postalCode": "sample string 9",
  "idrettsLagId": "7e5b4274-fd1e-430a-9dc5-31643f5e0891",
  "clubId": "sample string 11",
  "teamId": "sample string 12",
  "phone": "sample string 13",
  "birthDay": "2026-01-01T10:33:39.5007326Z",
  "roles": [
    {
      "rolle": "sample string 1",
      "rolleId": "sample string 2",
      "checked": true,
      "description": "sample string 4",
      "level": 5,
      "id": "eb22c4ca-34b7-460f-8f67-1698c087fd87",
      "isClub": true
    },
    {
      "rolle": "sample string 1",
      "rolleId": "sample string 2",
      "checked": true,
      "description": "sample string 4",
      "level": 5,
      "id": "eb22c4ca-34b7-460f-8f67-1698c087fd87",
      "isClub": true
    }
  ],
  "sendReminder": true,
  "extendedProfile": {
    "id": 1,
    "userId": "85fd3f21-1ec0-4a9d-85f1-b77df3dfdf84",
    "picture": "sample string 3",
    "thmb": "sample string 4",
    "highPicture": "sample string 5",
    "school": "sample string 6",
    "month": true,
    "twoWeeks": true,
    "week": true,
    "threeDays": true,
    "playerNumber": 11,
    "sendMessageNotificationToEmail": true,
    "fiksId": 13,
    "teamLevelFrom": 14,
    "teamLevelTo": 15
  }
}

application/xml, text/xml

Sample:
<UpdateUserBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/oiback.Models">
  <Address>sample string 7</Address>
  <BirthDay>2026-01-01T11:33:39.5007326+01:00</BirthDay>
  <ClubId>sample string 11</ClubId>
  <CompanyId>cfa6cd0e-0e3a-4231-9b3f-32ff3e72cfb6</CompanyId>
  <CurrentCompanyId>804a8d5b-ea7f-4804-b378-21dfde29629b</CurrentCompanyId>
  <Email>sample string 1</Email>
  <ExtendedProfile xmlns:d2p1="http://schemas.datacontract.org/2004/07/oiback.Classes">
    <d2p1:FiksId>13</d2p1:FiksId>
    <d2p1:HighPicture>sample string 5</d2p1:HighPicture>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Month>true</d2p1:Month>
    <d2p1:Picture>sample string 3</d2p1:Picture>
    <d2p1:PlayerNumber>11</d2p1:PlayerNumber>
    <d2p1:School>sample string 6</d2p1:School>
    <d2p1:SendMessageNotificationToEmail>true</d2p1:SendMessageNotificationToEmail>
    <d2p1:TeamLevelFrom>14</d2p1:TeamLevelFrom>
    <d2p1:TeamLevelTo>15</d2p1:TeamLevelTo>
    <d2p1:Thmb>sample string 4</d2p1:Thmb>
    <d2p1:ThreeDays>true</d2p1:ThreeDays>
    <d2p1:TwoWeeks>true</d2p1:TwoWeeks>
    <d2p1:UserId>85fd3f21-1ec0-4a9d-85f1-b77df3dfdf84</d2p1:UserId>
    <d2p1:Week>true</d2p1:Week>
  </ExtendedProfile>
  <FirstName>sample string 2</FirstName>
  <IdrettsLagId>7e5b4274-fd1e-430a-9dc5-31643f5e0891</IdrettsLagId>
  <LastName>sample string 3</LastName>
  <Phone>sample string 13</Phone>
  <PostalAddress>sample string 8</PostalAddress>
  <PostalCode>sample string 9</PostalCode>
  <Roles>
    <RollerBindingModel>
      <Checked>true</Checked>
      <Description>sample string 4</Description>
      <Id>eb22c4ca-34b7-460f-8f67-1698c087fd87</Id>
      <IsClub>true</IsClub>
      <Level>5</Level>
      <Rolle>sample string 1</Rolle>
      <RolleId>sample string 2</RolleId>
    </RollerBindingModel>
    <RollerBindingModel>
      <Checked>true</Checked>
      <Description>sample string 4</Description>
      <Id>eb22c4ca-34b7-460f-8f67-1698c087fd87</Id>
      <IsClub>true</IsClub>
      <Level>5</Level>
      <Rolle>sample string 1</Rolle>
      <RolleId>sample string 2</RolleId>
    </RollerBindingModel>
  </Roles>
  <SendReminder>true</SendReminder>
  <TeamId>sample string 12</TeamId>
  <UserId>sample string 6</UserId>
</UpdateUserBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.