POST api/Site

Request Information

URI Parameters

None.

Body Parameters

ShortSite
NameDescriptionTypeAdditional information
name

string

None.

id

integer

None.

organizationName

string

None.

organizationId

integer

None.

iconClass

string

None.

address1

string

None.

address2

string

None.

city

string

None.

zip

string

None.

stateId

integer

None.

stateName

string

None.

phone

string

None.

orgTypeId

integer

None.

orgTypeName

string

None.

siteAdmin

string

None.

siteAdminEmail

string

None.

siteAdminId

integer

None.

isActive

boolean

None.

canCreateAssessments

boolean

None.

counties

string

None.

schoolDurationId

integer

None.

schoolDurationName

string

None.

cycText

string

None.

totalServedLastYear

string

None.

totalServedLastSummer

string

None.

average30days

string

None.

otherNeed

string

None.

grades

Collection of DropdownItem

None.

activities

Collection of DropdownItem

None.

specialDesignations

Collection of DropdownItem

None.

needsUpdate

boolean

None.

salesforceId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "id": 2,
  "organizationName": "sample string 3",
  "organizationId": 4,
  "iconClass": "sample string 5",
  "address1": "sample string 6",
  "address2": "sample string 7",
  "city": "sample string 8",
  "zip": "sample string 9",
  "stateId": 10,
  "stateName": "sample string 11",
  "phone": "sample string 12",
  "orgTypeId": 13,
  "orgTypeName": "sample string 14",
  "siteAdmin": "sample string 15",
  "siteAdminEmail": "sample string 16",
  "siteAdminId": 1,
  "isActive": true,
  "canCreateAssessments": true,
  "counties": "sample string 19",
  "schoolDurationId": 1,
  "schoolDurationName": "sample string 20",
  "cycText": "sample string 21",
  "totalServedLastYear": "sample string 22",
  "totalServedLastSummer": "sample string 23",
  "average30days": "sample string 24",
  "otherNeed": "sample string 25",
  "grades": [
    {
      "name": "sample string 1",
      "id": 2,
      "isActive": true
    },
    {
      "name": "sample string 1",
      "id": 2,
      "isActive": true
    }
  ],
  "activities": [
    {
      "name": "sample string 1",
      "id": 2,
      "isActive": true
    },
    {
      "name": "sample string 1",
      "id": 2,
      "isActive": true
    }
  ],
  "specialDesignations": [
    {
      "name": "sample string 1",
      "id": 2,
      "isActive": true
    },
    {
      "name": "sample string 1",
      "id": 2,
      "isActive": true
    }
  ],
  "needsUpdate": true,
  "salesforceId": "sample string 27"
}

application/xml, text/xml

Sample:
<ShortSite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IAN_QPSA.Models">
  <activities>
    <DropdownItem>
      <id>2</id>
      <isActive>true</isActive>
      <name>sample string 1</name>
    </DropdownItem>
    <DropdownItem>
      <id>2</id>
      <isActive>true</isActive>
      <name>sample string 1</name>
    </DropdownItem>
  </activities>
  <address1>sample string 6</address1>
  <address2>sample string 7</address2>
  <average30days>sample string 24</average30days>
  <canCreateAssessments>true</canCreateAssessments>
  <city>sample string 8</city>
  <counties>sample string 19</counties>
  <cycText>sample string 21</cycText>
  <grades>
    <DropdownItem>
      <id>2</id>
      <isActive>true</isActive>
      <name>sample string 1</name>
    </DropdownItem>
    <DropdownItem>
      <id>2</id>
      <isActive>true</isActive>
      <name>sample string 1</name>
    </DropdownItem>
  </grades>
  <iconClass>sample string 5</iconClass>
  <id>2</id>
  <isActive>true</isActive>
  <name>sample string 1</name>
  <needsUpdate>true</needsUpdate>
  <orgTypeId>13</orgTypeId>
  <orgTypeName>sample string 14</orgTypeName>
  <organizationId>4</organizationId>
  <organizationName>sample string 3</organizationName>
  <otherNeed>sample string 25</otherNeed>
  <phone>sample string 12</phone>
  <salesforceId>sample string 27</salesforceId>
  <schoolDurationId>1</schoolDurationId>
  <schoolDurationName>sample string 20</schoolDurationName>
  <siteAdmin>sample string 15</siteAdmin>
  <siteAdminEmail>sample string 16</siteAdminEmail>
  <siteAdminId>1</siteAdminId>
  <specialDesignations>
    <DropdownItem>
      <id>2</id>
      <isActive>true</isActive>
      <name>sample string 1</name>
    </DropdownItem>
    <DropdownItem>
      <id>2</id>
      <isActive>true</isActive>
      <name>sample string 1</name>
    </DropdownItem>
  </specialDesignations>
  <stateId>10</stateId>
  <stateName>sample string 11</stateName>
  <totalServedLastSummer>sample string 23</totalServedLastSummer>
  <totalServedLastYear>sample string 22</totalServedLastYear>
  <zip>sample string 9</zip>
</ShortSite>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.