POST Vacation/SaveResponse/{userConnectedAzureID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userConnectedAzureID

string

Required

Body Parameters

VacationApproved
NameDescriptionTypeAdditional information
SupervisorID

integer

None.

VacationRequestID

integer

None.

IsApproved

boolean

None.

Comment

string

None.

TypeResponse

string

None.

EmployeeConnectedID

integer

None.

UserConnectedID

integer

None.

UserConnectedName

string

None.

UserConnectedAzureID

string

None.

UserRole

string

None.

UserEmail

string

None.

IsEmployee

boolean

None.

CostUnit

string

None.

ListUserRoles

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SupervisorID": 1,
  "VacationRequestID": 2,
  "IsApproved": true,
  "Comment": "sample string 4",
  "TypeResponse": "sample string 5",
  "EmployeeConnectedID": 6,
  "UserConnectedID": 7,
  "UserConnectedName": "sample string 8",
  "UserConnectedAzureID": "sample string 9",
  "UserRole": "sample string 10",
  "UserEmail": "sample string 11",
  "IsEmployee": true,
  "CostUnit": "sample string 13",
  "ListUserRoles": "sample string 14"
}

application/xml, text/xml

Sample:
<VacationApproved xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Models">
  <CostUnit xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">sample string 13</CostUnit>
  <EmployeeConnectedID xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">6</EmployeeConnectedID>
  <IsEmployee xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">true</IsEmployee>
  <ListUserRoles xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">sample string 14</ListUserRoles>
  <UserConnectedAzureID xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">sample string 9</UserConnectedAzureID>
  <UserConnectedID xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">7</UserConnectedID>
  <UserConnectedName xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">sample string 8</UserConnectedName>
  <UserEmail xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">sample string 11</UserEmail>
  <UserRole xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">sample string 10</UserRole>
  <Comment>sample string 4</Comment>
  <IsApproved>true</IsApproved>
  <SupervisorID>1</SupervisorID>
  <TypeResponse>sample string 5</TypeResponse>
  <VacationRequestID>2</VacationRequestID>
</VacationApproved>

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

Response Information

Resource Description

MsgResponse
NameDescriptionTypeAdditional information
Message

string

None.

IsSaved

boolean

None.

SavedID

integer

None.

Label

string

None.

TableHTML

string

None.

listJsonTableRows

string

None.

ListTableRows

Collection of Object

None.

ListDDLItems

None.

Response Formats

application/json, text/json

Sample:
{
  "ListDDLItems": [
    {
      "ID": "sample string 1",
      "Label": "sample string 2"
    },
    {
      "ID": "sample string 1",
      "Label": "sample string 2"
    }
  ],
  "Message": "sample string 1",
  "IsSaved": true,
  "SavedID": 3,
  "Label": "sample string 4",
  "TableHTML": "sample string 5",
  "listJsonTableRows": "sample string 6",
  "ListTableRows": [
    {},
    {}
  ]
}

application/xml, text/xml

Sample:
<MsgResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Classes">
  <IsSaved>true</IsSaved>
  <Label>sample string 4</Label>
  <ListDDLItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/AGS.Model">
    <d2p1:ItemIDLabel>
      <d2p1:ID>sample string 1</d2p1:ID>
      <d2p1:Label>sample string 2</d2p1:Label>
    </d2p1:ItemIDLabel>
    <d2p1:ItemIDLabel>
      <d2p1:ID>sample string 1</d2p1:ID>
      <d2p1:Label>sample string 2</d2p1:Label>
    </d2p1:ItemIDLabel>
  </ListDDLItems>
  <ListTableRows xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </ListTableRows>
  <Message>sample string 1</Message>
  <SavedID>3</SavedID>
  <TableHTML>sample string 5</TableHTML>
  <listJsonTableRows>sample string 6</listJsonTableRows>
</MsgResponse>