POST api/v1/UserAdminAPI/UserUpdateGDPR/{id}
Updated the GDPR settings of the user
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
TwoSms.CustomerPortalRole.API.Admin.Users.UserName | Description | Type | Additional information |
---|---|---|---|
ID |
The unique identifier for the user. |
globally unique identifier |
None. |
AgreementDate |
The date the user accepted the privacy policy and data processing agreement. This field is read-only. |
date |
None. |
AccountID |
The unique identifier for the account. |
globally unique identifier |
None. |
AdminUser |
Determines if the user is an admin user. |
boolean |
None. |
DateCreated |
The date the user account was created. |
date |
None. |
DateModified |
The date the user account was last modified. |
date |
None. |
DeclineDate |
The date the user declined the privacy policy and data processing agreement. This field is read-only. |
date |
None. |
DisplayName |
The name of the user. |
string |
Required |
DPAVersion |
The version of the data processing agreement that the user has accepted. This field is only read-only. |
string |
None. |
EmailAddress |
The email address of the user. |
string |
Required Data type: EmailAddress |
Enabled | boolean |
Required |
|
LanguageID |
The Id of the language of the user. |
globally unique identifier |
Required |
MobilePhone |
The mobile phone of the user |
string |
Required Matching regular expression pattern: ^(?=.*?\d.*?\d.*?\d.*?\d.*?\d)([+]?)([\d\s\(\)-]{5,20})$ |
Password |
The password of the user. |
string |
None. |
Pin |
Sets the security pin when two factor has been enable. Set it to null if you want it to randonly generate each login. |
string |
None. |
Preferences | TwoSms.CustomerPortalRole.API.Admin.Users.Preferences |
None. |
|
PrivacyPolicyVersion |
The version of the privacy policy that the user has accepted. This field is only read-only. |
string |
None. |
TimeZone |
The timezone of the user. |
string |
Required |
Username |
The username of the user to log into the system. |
string |
Required |
Request Formats
application/json, text/json
{ "ID": "f5895da3-5f73-4a55-bc28-29e0286ca9cb", "AgreementDate": "2025-01-18T05:07:50.4075685+00:00", "AccountID": "710d2f4c-0267-408e-87a0-d7f355a2a461", "AdminUser": true, "DateCreated": "2025-01-18T05:07:50.4075685+00:00", "DateModified": "2025-01-18T05:07:50.4075685+00:00", "DeclineDate": "2025-01-18T05:07:50.4075685+00:00", "DisplayName": "sample string 6", "DPAVersion": "sample string 7", "EmailAddress": "sample string 8", "Enabled": true, "LanguageID": "17dcaec8-8ccb-4964-a4f4-bd27df27aad6", "MobilePhone": "sample string 12", "Password": "sample string 13", "Pin": "sample string 14", "Preferences": 0, "PrivacyPolicyVersion": "sample string 15", "TimeZone": "sample string 16", "Username": "sample string 17" }
application/xml, text/xml
<User xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ID>f5895da3-5f73-4a55-bc28-29e0286ca9cb</ID> <AgreementDate>2025-01-18T05:07:50.4075685+00:00</AgreementDate> <AccountID>710d2f4c-0267-408e-87a0-d7f355a2a461</AccountID> <AdminUser>true</AdminUser> <DateCreated>2025-01-18T05:07:50.4075685+00:00</DateCreated> <DateModified>2025-01-18T05:07:50.4075685+00:00</DateModified> <DeclineDate>2025-01-18T05:07:50.4075685+00:00</DeclineDate> <DisplayName>sample string 6</DisplayName> <DPAVersion>sample string 7</DPAVersion> <EmailAddress>sample string 8</EmailAddress> <Enabled>true</Enabled> <LanguageID>17dcaec8-8ccb-4964-a4f4-bd27df27aad6</LanguageID> <Language>sample string 11</Language> <MobilePhone>sample string 12</MobilePhone> <Password>sample string 13</Password> <Pin>sample string 14</Pin> <Preferences>NONE</Preferences> <PrivacyPolicyVersion>sample string 15</PrivacyPolicyVersion> <TimeZone>sample string 16</TimeZone> <Username>sample string 17</Username> </User>
application/x-www-form-urlencoded
Response Information
Resource Description
TwoSms.CustomerPortalRole.API.Misc.ResponseOfTwoSms.CustomerPortalRole.API.Admin.Users.UserName | Description | Type | Additional information |
---|---|---|---|
Error | TwoSms.CustomerPortalRole.API.Misc.Error |
None. |
|
ResponseData | TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfTwoSms.CustomerPortalRole.API.Admin.Users.User |
None. |
Response Formats
application/json, text/json
{ "Error": { "ErrorCode": "sample string 1", "ErrorReason": "sample string 2" }, "ResponseData": { "Identification": { "UserId": "sample string 1" }, "Result": "sample string 1", "Detail": { "ID": "11866088-5759-4ad8-a30f-71626cc4fafe", "AgreementDate": "2025-01-18T05:07:50.4188976+00:00", "AccountID": "cd396468-ad2a-432d-ae2b-19ac2d95d8f9", "AdminUser": true, "DateCreated": "2025-01-18T05:07:50.4188976+00:00", "DateModified": "2025-01-18T05:07:50.4188976+00:00", "DeclineDate": "2025-01-18T05:07:50.4188976+00:00", "DisplayName": "sample string 6", "DPAVersion": "sample string 7", "EmailAddress": "sample string 8", "Enabled": true, "LanguageID": "9b70e3da-5f76-4939-9e74-1db1fdc5865d", "MobilePhone": "sample string 12", "Password": "sample string 13", "Pin": "sample string 14", "Preferences": 0, "PrivacyPolicyVersion": "sample string 15", "TimeZone": "sample string 16", "Username": "sample string 17" } } }
application/xml, text/xml
<ResponseOfUser xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Error> <ErrorCode>sample string 1</ErrorCode> <ErrorReason>sample string 2</ErrorReason> </Error> <ResponseData> <Result>sample string 1</Result> <Identification> <UserId>sample string 1</UserId> </Identification> <Detail> <ID>11866088-5759-4ad8-a30f-71626cc4fafe</ID> <AgreementDate>2025-01-18T05:07:50.4188976+00:00</AgreementDate> <AccountID>cd396468-ad2a-432d-ae2b-19ac2d95d8f9</AccountID> <AdminUser>true</AdminUser> <DateCreated>2025-01-18T05:07:50.4188976+00:00</DateCreated> <DateModified>2025-01-18T05:07:50.4188976+00:00</DateModified> <DeclineDate>2025-01-18T05:07:50.4188976+00:00</DeclineDate> <DisplayName>sample string 6</DisplayName> <DPAVersion>sample string 7</DPAVersion> <EmailAddress>sample string 8</EmailAddress> <Enabled>true</Enabled> <LanguageID>9b70e3da-5f76-4939-9e74-1db1fdc5865d</LanguageID> <Language>sample string 11</Language> <MobilePhone>sample string 12</MobilePhone> <Password>sample string 13</Password> <Pin>sample string 14</Pin> <Preferences>NONE</Preferences> <PrivacyPolicyVersion>sample string 15</PrivacyPolicyVersion> <TimeZone>sample string 16</TimeZone> <Username>sample string 17</Username> </Detail> </ResponseData> </ResponseOfUser>