POST api/Keyword/AddKeywords

Add keywords for project

Request Information

URI Parameters

None.

Body Parameters

AddKeywordsParam
NameDescriptionTypeAdditional information
ProjectId

Project identifier

integer

None.

Keywords

New keywords data

Collection of AddKeywordElem

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "Keywords": [
    {
      "Title": "sample string 1",
      "Url": "sample string 2",
      "Budget": 1.0
    },
    {
      "Title": "sample string 1",
      "Url": "sample string 2",
      "Budget": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<AddKeywordsParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDEV.RookeeWebApi.Models.InputData">
  <Keywords>
    <AddKeywordElem>
      <Budget>1</Budget>
      <Title>sample string 1</Title>
      <Url>sample string 2</Url>
    </AddKeywordElem>
    <AddKeywordElem>
      <Budget>1</Budget>
      <Title>sample string 1</Title>
      <Url>sample string 2</Url>
    </AddKeywordElem>
  </Keywords>
  <ProjectId>1</ProjectId>
</AddKeywordsParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddKeywordsResult
NameDescriptionTypeAdditional information
AddKeywordsCount

Number of added keywords

integer

None.

KeywordsIds

Added keywords identifiers

Collection of integer

None.

StatusCode

Response status code

ApiStatusCode

None.

ErrorMsg

Error text if status code not Ok

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AddKeywordsCount": 1,
  "KeywordsIds": [
    1,
    2
  ],
  "StatusCode": 0,
  "ErrorMsg": "sample string 2"
}