POST api/superadmin/projects/{projectId}/keys

Post for add a new key to project (add only name)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

integer

Required

Body Parameters

Collection of KeyAdminModel
NameDescriptionTypeAdditional information
KeyId

integer

None.

name

string

None.

referenceOnSite

string

None.

countReferencesDone

integer

None.

countReferences

integer

None.

addDate

date

None.

lastCheck

date

None.

positionOnAddDateGoogle

integer

None.

previousPositionGoogle

integer

None.

checkOnTodayGoogle

integer

None.

positionOnAddDateYandex

integer

None.

previousPositionYandex

integer

None.

checkOnTodayYandex

integer

None.

isActive

boolean

None.

crm

string

None.

crmId

string

None.

ownDeadLine

boolean

None.

dateOfFinish

date

None.

countReferencesChecking

integer

None.

needUpdate

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "$id": "2",
    "keyId": 1,
    "name": "sample string 2",
    "referenceOnSite": "sample string 3",
    "countReferencesDone": 4,
    "countReferences": 5,
    "addDate": "2024-05-20T06:09:48.6253403+00:00",
    "lastCheck": "2024-05-20T06:09:48.6253403+00:00",
    "positionOnAddDateGoogle": 8,
    "previousPositionGoogle": 9,
    "checkOnTodayGoogle": 10,
    "positionOnAddDateYandex": 11,
    "previousPositionYandex": 12,
    "checkOnTodayYandex": 13,
    "isActive": true,
    "crm": "sample string 15",
    "crmId": "sample string 16",
    "ownDeadLine": true,
    "dateOfFinish": "2024-05-20T06:09:48.6253403+00:00",
    "countReferencesChecking": 18,
    "needUpdate": true
  },
  {
    "$ref": "2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfKeyAdminModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CraudWezom_v1.Models.Keys">
  <KeyAdminModel>
    <KeyId>1</KeyId>
    <addDate>2024-05-20T06:09:48.6253403+00:00</addDate>
    <checkOnTodayGoogle>10</checkOnTodayGoogle>
    <checkOnTodayYandex>13</checkOnTodayYandex>
    <countReferences>5</countReferences>
    <countReferencesChecking>18</countReferencesChecking>
    <countReferencesDone>4</countReferencesDone>
    <crm>sample string 15</crm>
    <crmId>sample string 16</crmId>
    <dateOfFinish>2024-05-20T06:09:48.6253403+00:00</dateOfFinish>
    <isActive>true</isActive>
    <lastCheck>2024-05-20T06:09:48.6253403+00:00</lastCheck>
    <name>sample string 2</name>
    <needUpdate>true</needUpdate>
    <ownDeadLine>true</ownDeadLine>
    <positionOnAddDateGoogle>8</positionOnAddDateGoogle>
    <positionOnAddDateYandex>11</positionOnAddDateYandex>
    <previousPositionGoogle>9</previousPositionGoogle>
    <previousPositionYandex>12</previousPositionYandex>
    <referenceOnSite>sample string 3</referenceOnSite>
  </KeyAdminModel>
  <KeyAdminModel>
    <KeyId>1</KeyId>
    <addDate>2024-05-20T06:09:48.6253403+00:00</addDate>
    <checkOnTodayGoogle>10</checkOnTodayGoogle>
    <checkOnTodayYandex>13</checkOnTodayYandex>
    <countReferences>5</countReferences>
    <countReferencesChecking>18</countReferencesChecking>
    <countReferencesDone>4</countReferencesDone>
    <crm>sample string 15</crm>
    <crmId>sample string 16</crmId>
    <dateOfFinish>2024-05-20T06:09:48.6253403+00:00</dateOfFinish>
    <isActive>true</isActive>
    <lastCheck>2024-05-20T06:09:48.6253403+00:00</lastCheck>
    <name>sample string 2</name>
    <needUpdate>true</needUpdate>
    <ownDeadLine>true</ownDeadLine>
    <positionOnAddDateGoogle>8</positionOnAddDateGoogle>
    <positionOnAddDateYandex>11</positionOnAddDateYandex>
    <previousPositionGoogle>9</previousPositionGoogle>
    <previousPositionYandex>12</previousPositionYandex>
    <referenceOnSite>sample string 3</referenceOnSite>
  </KeyAdminModel>
</ArrayOfKeyAdminModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.