POST api/JankariPortalPartner/InsertProgram

Request Information

URI Parameters

None.

Body Parameters

Program
NameDescriptionTypeAdditional information
pgid

string

None.

ogid

string

None.

pgname

string

None.

logo

string

None.

seqno

integer

None.

Program1

Program

None.

Program2

Program

None.

Departments

Collection of Department

None.

EmployeePrograms

Collection of EmployeeProgram

None.

UserPrograms

Collection of UserProgram

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'Program1' with type 'JankariPortalPartner_Live.Models.Program'. Path ''.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'Program1' with type 'JankariPortalPartner_Live.Models.Program'. Path ''.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'JankariPortalPartner_Live.Models.Department' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'JankariPortalPartner_Live.Models.Department' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Program'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>