POST User/addandlink
Adds a user and links it to a customer
Request Information
URI Parameters
None.
Body Parameters
AddUserAndLinkToCustomerRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
None. |
|
| password | string |
None. |
|
| customerid | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"username": "sample string 1",
"password": "sample string 2",
"customerid": 3.0
}
application/xml, text/xml
Sample:
<AddUserAndLinkToCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Requests"> <customerid>3</customerid> <password>sample string 2</password> <username>sample string 1</username> </AddUserAndLinkToCustomerRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AddUserResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| status | AddUserStatus |
None. |
|
| user | User |
None. |
|
| password | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"status": "ok",
"user": {
"id": "sample string 1",
"name": "sample string 2",
"username": "sample string 3",
"teamname": "sample string 4",
"teamid": "sample string 5",
"branches": [
{
"id": "sample string 1",
"name": "sample string 2",
"ecomm_name": "sample string 3"
},
{
"id": "sample string 1",
"name": "sample string 2",
"ecomm_name": "sample string 3"
}
]
},
"password": "sample string 2"
}
application/xml, text/xml
Sample:
<AddUserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Responses">
<password>sample string 2</password>
<status>ok</status>
<success>true</success>
<user xmlns:d2p1="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel">
<d2p1:branches>
<d2p1:Branch>
<d2p1:ecomm_name>sample string 3</d2p1:ecomm_name>
<d2p1:id>sample string 1</d2p1:id>
<d2p1:name>sample string 2</d2p1:name>
</d2p1:Branch>
<d2p1:Branch>
<d2p1:ecomm_name>sample string 3</d2p1:ecomm_name>
<d2p1:id>sample string 1</d2p1:id>
<d2p1:name>sample string 2</d2p1:name>
</d2p1:Branch>
</d2p1:branches>
<d2p1:id>sample string 1</d2p1:id>
<d2p1:name>sample string 2</d2p1:name>
<d2p1:teamid>sample string 5</d2p1:teamid>
<d2p1:teamname>sample string 4</d2p1:teamname>
<d2p1:username>sample string 3</d2p1:username>
</user>
</AddUserResponse>