POST api/Authors/SaveAuthor

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

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>