Home / API / ASP.NET Web API Details

POST api/v1/Program/PostCreateProgram

Description

Post request, create a new program

Request Information

Parameters

NameDescriptionAdditional information
companyid
No documentation available.

Define this parameter in the request body.

accountid
No documentation available.

Define this parameter in the request body.

siteid
No documentation available.

Define this parameter in the request body.

branchid
No documentation available.

Define this parameter in the request body.

programtypeid
No documentation available.

Define this parameter in the request body.

routeid
No documentation available.

Define this parameter in the request body.

estimateid
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "companyid": 1,
  "accountid": 2,
  "siteid": 3,
  "branchid": 4,
  "programtypeid": 5,
  "routeid": 6,
  "estimateid": 7
}

application/xml, text/xml

Sample:
<newprogrammodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <accountid>2</accountid>
  <branchid>4</branchid>
  <companyid>1</companyid>
  <estimateid>7</estimateid>
  <programtypeid>5</programtypeid>
  <routeid>6</routeid>
  <siteid>3</siteid>
</newprogrammodel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

result_newprogrammodel

Response body formats

application/json, text/json

Sample:
{
  "programid": 1,
  "message_result": "sample string 2",
  "newprogram": {
    "companyid": 1,
    "accountid": 2,
    "siteid": 3,
    "branchid": 4,
    "programtypeid": 5,
    "routeid": 6,
    "estimateid": 7
  }
}

application/xml, text/xml

Sample:
<result_newprogrammodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <message_result>sample string 2</message_result>
  <newprogram>
    <accountid>2</accountid>
    <branchid>4</branchid>
    <companyid>1</companyid>
    <estimateid>7</estimateid>
    <programtypeid>5</programtypeid>
    <routeid>6</routeid>
    <siteid>3</siteid>
  </newprogram>
  <programid>1</programid>
</result_newprogrammodel>