POST api/v1/user
Register a user account.
Request Information
URI Parameters
None.
Body Parameters
RegisterUserDtoName | Description | Type | Additional information |
---|---|---|---|
UserName | string |
Required |
|
EmailAddress | string |
Required |
|
Password | string |
Required |
|
ConfirmPassword | string |
Required |
|
InviteCode | string |
None. |
Request Formats
application/json, text/json, application/senml+json
Sample:
{ "UserName": "sample string 1", "EmailAddress": "sample string 2", "Password": "sample string 3", "ConfirmPassword": "sample string 4", "InviteCode": "sample string 5" }
application/xml, text/xml
Sample:
<RegisterUserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.User"> <ConfirmPassword>sample string 4</ConfirmPassword> <EmailAddress>sample string 2</EmailAddress> <InviteCode>sample string 5</InviteCode> <Password>sample string 3</Password> <UserName>sample string 1</UserName> </RegisterUserViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
User Id |
globally unique identifier |
None. |
Url | string |
None. |
|
AccountId |
The Id of the account the user is assigned to |
string |
None. |
Name |
The users name |
string |
None. |
UserName |
UserName (used to login with) |
string |
None. |
FullUserName |
User Id and Account name |
string |
None. |
DisplayName |
Users first and last name |
string |
None. |
Avatar |
Link to the users avatar |
LinkDto |
None. |
TimeLine |
Link to the users timeline page. |
LinkDto |
None. |
Profile |
Link to the users profile page. |
LinkDto |
None. |
Tags | Collection of string |
None. |
|
Links |
Collection of links appropriate for the user |
Collection of LinkDto |
None. |
Actions | Collection of LinkDto |
None. |
Response Formats
application/json, text/json, application/senml+json
Sample:
{ "Id": "d7d33190-1b90-4d16-89d0-db994e0c7f06", "Url": "sample string 2", "AccountId": "sample string 3", "Name": "sample string 4", "UserName": "sample string 5", "FullUserName": "sample string 6", "DisplayName": "sample string 7", "Avatar": { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, "TimeLine": { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, "Profile": { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, "Tags": [ "sample string 1", "sample string 2" ], "Links": [ { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" } ], "Actions": [ { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" } ] }
application/xml, text/xml
Sample:
<UserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared"> <AccountId>sample string 3</AccountId> <Actions> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> </Actions> <Avatar> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </Avatar> <DisplayName>sample string 7</DisplayName> <FullUserName>sample string 6</FullUserName> <Id>d7d33190-1b90-4d16-89d0-db994e0c7f06</Id> <Links> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> </Links> <Name>sample string 4</Name> <Profile> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </Profile> <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Tags> <TimeLine> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </TimeLine> <Url>sample string 2</Url> <UserName>sample string 5</UserName> </UserViewModel>