| PUT | /users/{UserId} | Update user account info |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| XForwardedFor | header | string | No | IP address of the end user |
| ApiKey | query | string | Yes | Api Key - grants access to resources |
| UserId | query | integer | Yes | |
| StoreId | query | integer | No | StoreId OR ChainId is required |
| ChainId | query | integer | No | StoreId OR ChainId is required |
| FirstName | query | string | No | |
| LastName | query | string | No | |
| HomePhone | query | string | No | |
| CellPhone | query | string | No | |
| Address1 | query | string | No | |
| City | query | string | No | |
| State | query | string | No | (Format:2 characters; Example:'MO') |
| Zip | query | string | No | |
| query | string | No | ||
| Gender | query | string | No | Gender (Format:'M'|'F') |
| DateOfBirth | query | date | No | Date of Birth (Format:YYYY-MM-DD) |
| Username | query | string | No | Username should be between 4 and 255 characters long |
| ExternalId | query | string | No | Unique ID for the user from your system. We store internally as ExternalUserId |
| EmergencyContactName | query | string | No | Emergency contact name |
| EmergencyContactPhone | query | string | No | Emergency contact phone number |
| EmergencyContactType | query | string | No | Emergency contact relationship |
| ProspectTypeId | query | integer | No | Prospect Type Id |
| RestrictedId | body | int? | No | |
| RestrictedResourceType | body | RestrictedResourceType | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserId | form | int | No | |
| FirstName | form | string | No | |
| LastName | form | string | No | |
| HomePhone | form | string | No | |
| CellPhone | form | string | No | |
| Address1 | form | string | No | |
| City | form | string | No | |
| State | form | string | No | |
| Zip | form | string | No | |
| form | string | No | ||
| Gender | form | string | No | |
| DateOfBirth | form | DateTime? | No | |
| Username | form | string | No | |
| ExternalId | form | string | No | |
| EmergencyContactName | form | string | No | |
| EmergencyContactPhone | form | string | No | |
| EmergencyContactType | form | string | No | |
| ProspectTypeId | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ChainId | form | int? | No | |
| ApiKey | form | string | No | |
| StoreId | form | int? | No |
| Store | |
| Chain | |
| User | |
| Undefined |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /users/{UserId} HTTP/1.1
Host: www.clubready.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UserAccountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Web.Api.Members.Model">
<ApiKey xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api">String</ApiKey>
<ChainId xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api">0</ChainId>
<StoreId xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api">0</StoreId>
<Address1 xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</Address1>
<CellPhone xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</CellPhone>
<City xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</City>
<DateOfBirth xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">0001-01-01T00:00:00</DateOfBirth>
<Email xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</Email>
<EmergencyContactName xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</EmergencyContactName>
<EmergencyContactPhone xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</EmergencyContactPhone>
<EmergencyContactType xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</EmergencyContactType>
<ExternalId xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</ExternalId>
<FirstName xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</FirstName>
<Gender xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</Gender>
<HomePhone xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</HomePhone>
<LastName xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</LastName>
<ProspectTypeId xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">0</ProspectTypeId>
<State xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</State>
<UserId xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">0</UserId>
<Username xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</Username>
<Zip xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</Zip>
<XForwardedFor>String</XForwardedFor>
</UserAccountRequest>