POST v1/admin/company/{id}/members

Add new member to company

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Collection of AddMemberToCompanyInput
NameDescriptionTypeAdditional information
firstName

The First Name for the User.

string

Required

lastName

The Last Name for the User.

string

Required

email

The UserId/Email for the User.

string

Required

title

The title for the Person.

string

None.

doCreateWebUser

Whether new Web User be created

boolean

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "firstName": "sample string 1",
    "lastName": "sample string 2",
    "email": "sample string 3",
    "title": "sample string 4",
    "doCreateWebUser": true
  },
  {
    "firstName": "sample string 1",
    "lastName": "sample string 2",
    "email": "sample string 3",
    "title": "sample string 4",
    "doCreateWebUser": true
  }
]

text/html

Sample:
[{"firstName":"sample string 1","lastName":"sample string 2","email":"sample string 3","title":"sample string 4","doCreateWebUser":true},{"firstName":"sample string 1","lastName":"sample string 2","email":"sample string 3","title":"sample string 4","doCreateWebUser":true}]

application/xml, text/xml

Sample:
<ArrayOfv1_Admin_CompanyEndpointController.AddMemberToCompanyInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_CompanyEndpoint">
  <v1_Admin_CompanyEndpointController.AddMemberToCompanyInput>
    <doCreateWebUser>true</doCreateWebUser>
    <email>sample string 3</email>
    <firstName>sample string 1</firstName>
    <lastName>sample string 2</lastName>
    <title>sample string 4</title>
  </v1_Admin_CompanyEndpointController.AddMemberToCompanyInput>
  <v1_Admin_CompanyEndpointController.AddMemberToCompanyInput>
    <doCreateWebUser>true</doCreateWebUser>
    <email>sample string 3</email>
    <firstName>sample string 1</firstName>
    <lastName>sample string 2</lastName>
    <title>sample string 4</title>
  </v1_Admin_CompanyEndpointController.AddMemberToCompanyInput>
</ArrayOfv1_Admin_CompanyEndpointController.AddMemberToCompanyInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

None.