POST api/Account/EditUser

Request Information

URI Parameters

None.

Body Parameters

CreateUserRequest
NameDescriptionTypeAdditional information
Username

string

None.

FirstName

string

None.

LastName

string

None.

Password

string

None.

Email

string

None.

PhoneNumber

string

None.

Id

string

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "Password": "sample string 4",
  "Email": "sample string 5",
  "PhoneNumber": "sample string 6",
  "Id": "sample string 7",
  "Token": "sample string 9"
}

application/xml, text/xml

Sample:
<CreateUserRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Account.Request">
  <Token xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 9</Token>
  <Email>sample string 5</Email>
  <FirstName>sample string 2</FirstName>
  <Id>sample string 7</Id>
  <LastName>sample string 3</LastName>
  <PartnerId>sample string 8</PartnerId>
  <Password>sample string 4</Password>
  <PhoneNumber>sample string 6</PhoneNumber>
  <Username>sample string 1</Username>
</CreateUserRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateUserResponse
NameDescriptionTypeAdditional information
User

User

None.

ErrorCode

string

None.

ErrorMessage

string

None.

ErrorCategory

string

None.

Result

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "User": {
    "UserId": "sample string 1",
    "Username": "sample string 2",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "Password": "sample string 5",
    "Email": "sample string 6",
    "PhoneNumber": "sample string 7",
    "Image": "sample string 8",
    "UserStatusId": 64,
    "LastLoginTime": "2025-01-28T06:00:17.5450687+03:00",
    "UserTypeId": 64,
    "CountryId": 12,
    "CultureId": 13,
    "CreationTime": "2025-01-28T06:00:17.5450687+03:00",
    "UserStatus": "sample string 15",
    "UserType": "sample string 16",
    "PartnerId": "sample string 17"
  },
  "ErrorCode": "sample string 1",
  "ErrorMessage": "sample string 2",
  "ErrorCategory": "sample string 3",
  "Result": true
}

application/xml, text/xml

Sample:
<CreateUserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Account.Response">
  <ErrorCategory xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 3</ErrorCategory>
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 1</ErrorCode>
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 2</ErrorMessage>
  <Result xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">true</Result>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Account">
    <d2p1:CountryId>12</d2p1:CountryId>
    <d2p1:CreationTime>2025-01-28T06:00:17.5450687+03:00</d2p1:CreationTime>
    <d2p1:CultureId>13</d2p1:CultureId>
    <d2p1:Email>sample string 6</d2p1:Email>
    <d2p1:FirstName>sample string 3</d2p1:FirstName>
    <d2p1:Image>sample string 8</d2p1:Image>
    <d2p1:LastLoginTime>2025-01-28T06:00:17.5450687+03:00</d2p1:LastLoginTime>
    <d2p1:LastName>sample string 4</d2p1:LastName>
    <d2p1:PartnerId>sample string 17</d2p1:PartnerId>
    <d2p1:Password>sample string 5</d2p1:Password>
    <d2p1:PhoneNumber>sample string 7</d2p1:PhoneNumber>
    <d2p1:UserId>sample string 1</d2p1:UserId>
    <d2p1:UserStatus>sample string 15</d2p1:UserStatus>
    <d2p1:UserStatusId>64</d2p1:UserStatusId>
    <d2p1:UserType>sample string 16</d2p1:UserType>
    <d2p1:UserTypeId>64</d2p1:UserTypeId>
    <d2p1:Username>sample string 2</d2p1:Username>
  </User>
</CreateUserResponse>