POST api/approvalscreen/save

Request Information

URI Parameters

None.

Body Parameters

ApprovalTypeDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

IsCash

boolean

None.

Status

boolean

None.

ScreenName

string

None.

Cash

string

None.

ApprovalScreenDTOs

Collection of ApprovalScreenDTO

None.

ApprovalTypeDetailsDTOs

Collection of ApprovalTypeDetailsDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "IsCash": true,
  "Status": true,
  "ScreenName": "sample string 5",
  "Cash": "sample string 6",
  "ApprovalScreenDTOs": [
    {
      "Id": 1,
      "RoleId": 2,
      "ScreenId": 3,
      "SubScreenId": 1,
      "Code": "sample string 4",
      "Name": "sample string 5",
      "IsAccess": 1,
      "IsAccessBool": true,
      "IsModule": true,
      "IsSubModule": true,
      "ApprovalTypeName": "sample string 8",
      "IsCash": true
    },
    {
      "Id": 1,
      "RoleId": 2,
      "ScreenId": 3,
      "SubScreenId": 1,
      "Code": "sample string 4",
      "Name": "sample string 5",
      "IsAccess": 1,
      "IsAccessBool": true,
      "IsModule": true,
      "IsSubModule": true,
      "ApprovalTypeName": "sample string 8",
      "IsCash": true
    }
  ],
  "ApprovalTypeDetailsDTOs": [
    {
      "Id": 1,
      "ApprovalTypeId": 2,
      "ScreenId": 3,
      "ScreenName": "sample string 4"
    },
    {
      "Id": 1,
      "ApprovalTypeId": 2,
      "ScreenId": 3,
      "ScreenName": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<ApprovalTypeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.Setting">
  <ApprovalScreenDTOs>
    <ApprovalScreenDTO>
      <ApprovalTypeName>sample string 8</ApprovalTypeName>
      <Code>sample string 4</Code>
      <Id>1</Id>
      <IsAccess>1</IsAccess>
      <IsAccessBool>true</IsAccessBool>
      <IsCash>true</IsCash>
      <IsModule>true</IsModule>
      <IsSubModule>true</IsSubModule>
      <Name>sample string 5</Name>
      <RoleId>2</RoleId>
      <ScreenId>3</ScreenId>
      <SubScreenId>1</SubScreenId>
    </ApprovalScreenDTO>
    <ApprovalScreenDTO>
      <ApprovalTypeName>sample string 8</ApprovalTypeName>
      <Code>sample string 4</Code>
      <Id>1</Id>
      <IsAccess>1</IsAccess>
      <IsAccessBool>true</IsAccessBool>
      <IsCash>true</IsCash>
      <IsModule>true</IsModule>
      <IsSubModule>true</IsSubModule>
      <Name>sample string 5</Name>
      <RoleId>2</RoleId>
      <ScreenId>3</ScreenId>
      <SubScreenId>1</SubScreenId>
    </ApprovalScreenDTO>
  </ApprovalScreenDTOs>
  <ApprovalTypeDetailsDTOs>
    <ApprovalTypeDetailsDTO>
      <ApprovalTypeId>2</ApprovalTypeId>
      <Id>1</Id>
      <ScreenId>3</ScreenId>
      <ScreenName>sample string 4</ScreenName>
    </ApprovalTypeDetailsDTO>
    <ApprovalTypeDetailsDTO>
      <ApprovalTypeId>2</ApprovalTypeId>
      <Id>1</Id>
      <ScreenId>3</ScreenId>
      <ScreenName>sample string 4</ScreenName>
    </ApprovalTypeDetailsDTO>
  </ApprovalTypeDetailsDTOs>
  <Cash>sample string 6</Cash>
  <Id>1</Id>
  <IsCash>true</IsCash>
  <Name>sample string 2</Name>
  <ScreenName>sample string 5</ScreenName>
  <Status>true</Status>
</ApprovalTypeDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>