POST api/Account/EnableUser
Request Information
URI Parameters
None.
Body Parameters
EnableUserRequestName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
Token | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Token": "sample string 3" }
application/xml, text/xml
Sample:
<EnableUserRequest 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 3</Token> <Id>sample string 1</Id> <PartnerId>sample string 2</PartnerId> </EnableUserRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreateUserResponseName | Description | Type | Additional 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": "2024-11-21T12:18:47.1082534+03:00", "UserTypeId": 64, "CountryId": 12, "CultureId": 13, "CreationTime": "2024-11-21T12:18:47.1082534+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>2024-11-21T12:18:47.1082534+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>2024-11-21T12:18:47.1082534+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>