POST api/Project/Add

Request Information

URI Parameters

None.

Body Parameters

ProjectAddDto
NameDescriptionTypeAdditional information
Title

string

None.

Type

string

None.

Year

string

None.

Location

string

None.

Description

string

None.

CoverPhotoID

globally unique identifier

None.

projectDetailAdds

Collection of ProjectDetailAddDto

None.

IsActive

boolean

None.

WebSiteID

globally unique identifier

None.

ProjectEmployeeID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "title": "sample string 1",
  "type": "sample string 2",
  "year": "sample string 3",
  "location": "sample string 4",
  "description": "sample string 5",
  "coverPhotoID": "4cc42240-6913-4670-8150-32b126196f89",
  "projectDetailAdds": [
    {
      "detail": "sample string 1",
      "webSiteUrl": "sample string 2",
      "brochure": "sample string 3",
      "videoUrl": "sample string 4",
      "url": "sample string 5",
      "languageID": "34e4dfc7-b85d-4ee9-9265-8c79d056313b",
      "projectID": "4690ef39-6948-44bc-b0ff-c085f4c2f4e3"
    },
    {
      "detail": "sample string 1",
      "webSiteUrl": "sample string 2",
      "brochure": "sample string 3",
      "videoUrl": "sample string 4",
      "url": "sample string 5",
      "languageID": "34e4dfc7-b85d-4ee9-9265-8c79d056313b",
      "projectID": "4690ef39-6948-44bc-b0ff-c085f4c2f4e3"
    }
  ],
  "isActive": true,
  "webSiteID": "ea0ea0e9-850c-4f29-94ec-0cc8f5da6bff",
  "projectEmployeeID": "5a722b61-a6ef-4614-b5c3-5db5b2982eb9"
}

application/xml, text/xml

Sample:
<ProjectAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
  <CoverPhotoID>4cc42240-6913-4670-8150-32b126196f89</CoverPhotoID>
  <Description>sample string 5</Description>
  <IsActive>true</IsActive>
  <Location>sample string 4</Location>
  <ProjectEmployeeID>5a722b61-a6ef-4614-b5c3-5db5b2982eb9</ProjectEmployeeID>
  <Title>sample string 1</Title>
  <Type>sample string 2</Type>
  <WebSiteID>ea0ea0e9-850c-4f29-94ec-0cc8f5da6bff</WebSiteID>
  <Year>sample string 3</Year>
  <projectDetailAdds>
    <ProjectDetailAddDto>
      <Brochure>sample string 3</Brochure>
      <Detail>sample string 1</Detail>
      <LanguageID>34e4dfc7-b85d-4ee9-9265-8c79d056313b</LanguageID>
      <ProjectID>4690ef39-6948-44bc-b0ff-c085f4c2f4e3</ProjectID>
      <Url>sample string 5</Url>
      <VideoUrl>sample string 4</VideoUrl>
      <WebSiteUrl>sample string 2</WebSiteUrl>
    </ProjectDetailAddDto>
    <ProjectDetailAddDto>
      <Brochure>sample string 3</Brochure>
      <Detail>sample string 1</Detail>
      <LanguageID>34e4dfc7-b85d-4ee9-9265-8c79d056313b</LanguageID>
      <ProjectID>4690ef39-6948-44bc-b0ff-c085f4c2f4e3</ProjectID>
      <Url>sample string 5</Url>
      <VideoUrl>sample string 4</VideoUrl>
      <WebSiteUrl>sample string 2</WebSiteUrl>
    </ProjectDetailAddDto>
  </projectDetailAdds>
</ProjectAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"Title":"sample string 1","Type":"sample string 2","Year":"sample string 3","Location":"sample string 4","Description":"sample string 5","CoverPhotoID":"4cc42240-6913-4670-8150-32b126196f89","projectDetailAdds":[{"Detail":"sample string 1","WebSiteUrl":"sample string 2","Brochure":"sample string 3","VideoUrl":"sample string 4","Url":"sample string 5","LanguageID":"34e4dfc7-b85d-4ee9-9265-8c79d056313b","ProjectID":"4690ef39-6948-44bc-b0ff-c085f4c2f4e3"},{"Detail":"sample string 1","WebSiteUrl":"sample string 2","Brochure":"sample string 3","VideoUrl":"sample string 4","Url":"sample string 5","LanguageID":"34e4dfc7-b85d-4ee9-9265-8c79d056313b","ProjectID":"4690ef39-6948-44bc-b0ff-c085f4c2f4e3"}],"IsActive":true,"WebSiteID":"ea0ea0e9-850c-4f29-94ec-0cc8f5da6bff","ProjectEmployeeID":"5a722b61-a6ef-4614-b5c3-5db5b2982eb9"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.