POST api/Account/RegisterAd

Request Information

URI Parameters

None.

Body Parameters

RegisterAdBindingModel
NameDescriptionTypeAdditional information
Email

string

Required

FirstName

string

Required

String length: inclusive between 1 and 128

LastName

string

Required

String length: inclusive between 1 and 128

PhoneNumber

string

String length: inclusive between 1 and 200

Username

string

Required

ObjectId

string

Required

GroupObjectIds

Collection of string

Required

RoleName

string

None.

SchoolId

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "PhoneNumber": "sample string 4",
  "Username": "sample string 5",
  "ObjectId": "sample string 6",
  "GroupObjectIds": [
    "sample string 1",
    "sample string 2"
  ],
  "RoleName": "sample string 7",
  "SchoolId": 8
}

application/xml, text/xml

Sample:
<RegisterAdBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models">
  <Email>sample string 1</Email>
  <FirstName>sample string 2</FirstName>
  <GroupObjectIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </GroupObjectIds>
  <LastName>sample string 3</LastName>
  <ObjectId>sample string 6</ObjectId>
  <PhoneNumber>sample string 4</PhoneNumber>
  <RoleName>sample string 7</RoleName>
  <SchoolId>8</SchoolId>
  <Username>sample string 5</Username>
</RegisterAdBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RegisterAdResponse
NameDescriptionTypeAdditional information
Identifier

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Identifier": "sample string 1"
}

application/xml, text/xml

Sample:
<RegisterAdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models">
  <Identifier>sample string 1</Identifier>
</RegisterAdResponse>