POST api/Intranet/SetApplications

Request Information

URI Parameters

None.

Body Parameters

IntranetData
NameDescriptionTypeAdditional information
Extensions

Collection of ExtensionData

None.

UserName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "extensions": [
    {
      "extension": "sample string 1",
      "applications": [
        {
          "applicationName": "sample string 1",
          "applicationid": "sample string 2"
        },
        {
          "applicationName": "sample string 1",
          "applicationid": "sample string 2"
        }
      ]
    },
    {
      "extension": "sample string 1",
      "applications": [
        {
          "applicationName": "sample string 1",
          "applicationid": "sample string 2"
        },
        {
          "applicationName": "sample string 1",
          "applicationid": "sample string 2"
        }
      ]
    }
  ],
  "userName": "sample string 1"
}

application/xml, text/xml

Sample:
<IntranetData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common">
  <_x003C_Extensions_x003E_k__BackingField>
    <ExtensionData>
      <_x003C_Applications_x003E_k__BackingField>
        <AppData>
          <_x003C_ApplicationName_x003E_k__BackingField>sample string 1</_x003C_ApplicationName_x003E_k__BackingField>
          <_x003C_Applicationid_x003E_k__BackingField>sample string 2</_x003C_Applicationid_x003E_k__BackingField>
        </AppData>
        <AppData>
          <_x003C_ApplicationName_x003E_k__BackingField>sample string 1</_x003C_ApplicationName_x003E_k__BackingField>
          <_x003C_Applicationid_x003E_k__BackingField>sample string 2</_x003C_Applicationid_x003E_k__BackingField>
        </AppData>
      </_x003C_Applications_x003E_k__BackingField>
      <_x003C_Extension_x003E_k__BackingField>sample string 1</_x003C_Extension_x003E_k__BackingField>
    </ExtensionData>
    <ExtensionData>
      <_x003C_Applications_x003E_k__BackingField>
        <AppData>
          <_x003C_ApplicationName_x003E_k__BackingField>sample string 1</_x003C_ApplicationName_x003E_k__BackingField>
          <_x003C_Applicationid_x003E_k__BackingField>sample string 2</_x003C_Applicationid_x003E_k__BackingField>
        </AppData>
        <AppData>
          <_x003C_ApplicationName_x003E_k__BackingField>sample string 1</_x003C_ApplicationName_x003E_k__BackingField>
          <_x003C_Applicationid_x003E_k__BackingField>sample string 2</_x003C_Applicationid_x003E_k__BackingField>
        </AppData>
      </_x003C_Applications_x003E_k__BackingField>
      <_x003C_Extension_x003E_k__BackingField>sample string 1</_x003C_Extension_x003E_k__BackingField>
    </ExtensionData>
  </_x003C_Extensions_x003E_k__BackingField>
  <_x003C_UserName_x003E_k__BackingField>sample string 1</_x003C_UserName_x003E_k__BackingField>
</IntranetData>

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 'IntranetData'.

Response Information

Resource Description

BaseResult
NameDescriptionTypeAdditional information
Error

Error description if the operation failed

string

None.

Success

Operation result

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <_x003C_ErrorCode_x003E_k__BackingField>3</_x003C_ErrorCode_x003E_k__BackingField>
  <_x003C_Error_x003E_k__BackingField>sample string 1</_x003C_Error_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</BaseResult>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

data

Property Description
Extensions (ExtensionData[])

				
UserName (String)

				
}