POST api/AdminServices/AddAdmintoPartnerByCustomerId
literally just throws an exception.
Request Information
URI Parameters
None.
Body Parameters
CreateAdminPost| Name | Description | Type | Additional information |
|---|---|---|---|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| string |
None. |
||
| CustomerId | string |
None. |
|
| Key |
Key to Access API provided by GMetrix |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"FirstName": "sample string 1",
"LastName": "sample string 2",
"Email": "sample string 3",
"CustomerId": "sample string 4",
"Key": "sample string 5"
}
application/xml, text/xml
Sample:
<CreateAdminPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ManagementServicesApi.Models"> <Key>sample string 5</Key> <CustomerId>sample string 4</CustomerId> <Email>sample string 3</Email> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> </CreateAdminPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreateUserSuccess| Name | Description | Type | Additional information |
|---|---|---|---|
| NewUser | boolean |
None. |
|
| UserName | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| Successful | boolean |
None. |
|
| MsgSuccess | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"NewUser": true,
"UserName": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4",
"Successful": true,
"MsgSuccess": "sample string 6"
}
application/xml, text/xml
Sample:
<CreateUserSuccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ManagementServices.Repositories.Response"> <MsgSuccess>sample string 6</MsgSuccess> <Successful>true</Successful> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <NewUser>true</NewUser> <UserName>sample string 2</UserName> </CreateUserSuccess>