POST Investment/SaveNewRequest/{userConnectedAzureID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userConnectedAzureID

string

Required

Body Parameters

RequestInvestment
NameDescriptionTypeAdditional information
RequestNumber

string

None.

EmployeeID

string

None.

CostUnitID

string

None.

ProjectID

string

None.

Comment

string

None.

Reason

string

None.

Reinvoiced

boolean

None.

BuySelf

boolean

None.

Replacement

boolean

None.

InternalCosts

boolean

None.

Priority

integer

None.

FileName

string

None.

FileBase64

string

None.

UserConnectedID

string

None.

UserConnectedAzureID

string

None.

ListArticles

Collection of ArticleInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "RequestNumber": "sample string 1",
  "EmployeeID": "sample string 2",
  "CostUnitID": "sample string 3",
  "ProjectID": "sample string 4",
  "Comment": "sample string 5",
  "Reason": "sample string 6",
  "Reinvoiced": true,
  "BuySelf": true,
  "Replacement": true,
  "InternalCosts": true,
  "Priority": 11,
  "FileName": "sample string 12",
  "FileBase64": "sample string 13",
  "UserConnectedID": "sample string 14",
  "UserConnectedAzureID": "sample string 15",
  "ListArticles": [
    {
      "Label": "sample string 1",
      "CategoryID": "sample string 2",
      "Category": "sample string 3",
      "Number": "sample string 4",
      "Price": "sample string 5",
      "Link": "sample string 6"
    },
    {
      "Label": "sample string 1",
      "CategoryID": "sample string 2",
      "Category": "sample string 3",
      "Number": "sample string 4",
      "Price": "sample string 5",
      "Link": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<RequestInvestment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CubesApi.Models">
  <BuySelf>true</BuySelf>
  <Comment>sample string 5</Comment>
  <CostUnitID>sample string 3</CostUnitID>
  <EmployeeID>sample string 2</EmployeeID>
  <FileBase64>sample string 13</FileBase64>
  <FileName>sample string 12</FileName>
  <InternalCosts>true</InternalCosts>
  <ListArticles>
    <ArticleInfo>
      <Category>sample string 3</Category>
      <CategoryID>sample string 2</CategoryID>
      <Label>sample string 1</Label>
      <Link>sample string 6</Link>
      <Number>sample string 4</Number>
      <Price>sample string 5</Price>
    </ArticleInfo>
    <ArticleInfo>
      <Category>sample string 3</Category>
      <CategoryID>sample string 2</CategoryID>
      <Label>sample string 1</Label>
      <Link>sample string 6</Link>
      <Number>sample string 4</Number>
      <Price>sample string 5</Price>
    </ArticleInfo>
  </ListArticles>
  <Priority>11</Priority>
  <ProjectID>sample string 4</ProjectID>
  <Reason>sample string 6</Reason>
  <Reinvoiced>true</Reinvoiced>
  <Replacement>true</Replacement>
  <RequestNumber>sample string 1</RequestNumber>
  <UserConnectedAzureID>sample string 15</UserConnectedAzureID>
  <UserConnectedID>sample string 14</UserConnectedID>
</RequestInvestment>

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

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>