POST api/Authors/getAllByHid

Request Information

URI Parameters

None.

Body Parameters

Authors
NameDescriptionTypeAdditional information
AuthorId

integer

None.

CompanyId

integer

None.

Author

string

None.

Title

string

None.

HubSpotAuthorId

string

None.

HubSpotAuthorUrl

string

None.

HubSpotAvatar

string

None.

Linkedin

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "AuthorId": 1,
  "CompanyId": 2,
  "Author": "sample string 3",
  "Title": "sample string 4",
  "HubSpotAuthorId": "sample string 5",
  "HubSpotAuthorUrl": "sample string 6",
  "HubSpotAvatar": "sample string 7",
  "Linkedin": "sample string 8"
}

application/xml, text/xml

Sample:
<Authors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <Author>sample string 3</Author>
  <AuthorId>1</AuthorId>
  <CompanyId>2</CompanyId>
  <HubSpotAuthorId>sample string 5</HubSpotAuthorId>
  <HubSpotAuthorUrl>sample string 6</HubSpotAuthorUrl>
  <HubSpotAvatar>sample string 7</HubSpotAvatar>
  <Linkedin>sample string 8</Linkedin>
  <Title>sample string 4</Title>
</Authors>

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 'Authors'.

Response Information

Resource Description

AuthorCompany
NameDescriptionTypeAdditional information
authors

Authors

None.

company

Companies

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "authors": {
    "AuthorId": 1,
    "CompanyId": 2,
    "Author": "sample string 3",
    "Title": "sample string 4",
    "HubSpotAuthorId": "sample string 5",
    "HubSpotAuthorUrl": "sample string 6",
    "HubSpotAvatar": "sample string 7",
    "Linkedin": "sample string 8"
  },
  "company": {
    "Id": 1,
    "Name": "sample string 2",
    "Type": 3,
    "Website": "sample string 4",
    "Overview": "sample string 5",
    "Regions": 6,
    "Logo": "sample string 7",
    "Enabled": true,
    "OverallCA": 9,
    "OverallCP": 10,
    "AccessLevel": 11,
    "Display": true,
    "Tagline": "sample string 13",
    "Headquarters": "sample string 14",
    "Employees": "sample string 15",
    "Ticker": "sample string 16",
    "Revenue": "sample string 17",
    "RecentHappenings": "sample string 18",
    "NumPipeLineDrugs": 19,
    "PipeLineDrugs": "sample string 20",
    "EntityType": 21,
    "Phone": "sample string 22",
    "OldImportId": 23,
    "SubscriptionIndustryId": 24,
    "SubscriptionSegmentId": 25,
    "MemberSince": "2024-10-30T05:11:47.0469345-07:00",
    "DemoMode": true,
    "Ownership": 0,
    "Email": "sample string 28",
    "SocialMedia": "sample string 29"
  }
}

application/xml, text/xml

Sample:
<AuthorCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <authors>
    <Author>sample string 3</Author>
    <AuthorId>1</AuthorId>
    <CompanyId>2</CompanyId>
    <HubSpotAuthorId>sample string 5</HubSpotAuthorId>
    <HubSpotAuthorUrl>sample string 6</HubSpotAuthorUrl>
    <HubSpotAvatar>sample string 7</HubSpotAvatar>
    <Linkedin>sample string 8</Linkedin>
    <Title>sample string 4</Title>
  </authors>
  <company>
    <AccessLevel>11</AccessLevel>
    <DemoMode>true</DemoMode>
    <Display>true</Display>
    <Email>sample string 28</Email>
    <Employees>sample string 15</Employees>
    <Enabled>true</Enabled>
    <EntityType>21</EntityType>
    <Headquarters>sample string 14</Headquarters>
    <Id>1</Id>
    <Logo>sample string 7</Logo>
    <MemberSince>2024-10-30T05:11:47.0469345-07:00</MemberSince>
    <Name>sample string 2</Name>
    <NumPipeLineDrugs>19</NumPipeLineDrugs>
    <OldImportId>23</OldImportId>
    <OverallCA>9</OverallCA>
    <OverallCP>10</OverallCP>
    <Overview>sample string 5</Overview>
    <Ownership>Unset</Ownership>
    <Phone>sample string 22</Phone>
    <PipeLineDrugs>sample string 20</PipeLineDrugs>
    <RecentHappenings>sample string 18</RecentHappenings>
    <Regions>6</Regions>
    <Revenue>sample string 17</Revenue>
    <SocialMedia>sample string 29</SocialMedia>
    <SubscriptionIndustryId>24</SubscriptionIndustryId>
    <SubscriptionSegmentId>25</SubscriptionSegmentId>
    <Tagline>sample string 13</Tagline>
    <Ticker>sample string 16</Ticker>
    <Type>3</Type>
    <Website>sample string 4</Website>
  </company>
</AuthorCompany>