POST api/PM/SaveProject

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
project
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Code": "sample string 2",
  "NameAR": "sample string 3",
  "NameEN": "sample string 4",
  "StartDate": "2021-10-20T18:56:45.9876167+02:00",
  "EndDate": "2021-10-20T18:56:45.9876167+02:00",
  "Status": 7,
  "HourPrice": 1.0,
  "NumbHour": 1,
  "Completion": 1.0,
  "ProjectType": 8,
  "CostPercent": 1.0,
  "CostValue": 1.0,
  "ContractValue": 1.0,
  "IntialValue": 1.0,
  "BudgetHours": 1.0,
  "ClientId": 9,
  "DescriptionEN": "sample string 10",
  "DescriptionAR": "sample string 11",
  "ScopeEN": "sample string 12",
  "ScopeAR": "sample string 13",
  "ManagerId": 14,
  "CalendarType": 1,
  "CalendarId": 1,
  "PhaseId": 1,
  "BarcodeTypeId": 1,
  "Attachments": [
    {
      "FileName": "sample string 1",
      "AttachFile": "QEBA"
    },
    {
      "FileName": "sample string 1",
      "AttachFile": "QEBA"
    },
    {
      "FileName": "sample string 1",
      "AttachFile": "QEBA"
    }
  ],
  "InCT": "sample string 15",
  "Direction": "sample string 16"
}

application/xml, text/xml

Sample:
<Pro_Project_VM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPPlus_MOdel.API_VM_model">
  <Attachments>
    <AttachmentSampleVM>
      <AttachFile>QEBA</AttachFile>
      <FileName>sample string 1</FileName>
    </AttachmentSampleVM>
    <AttachmentSampleVM>
      <AttachFile>QEBA</AttachFile>
      <FileName>sample string 1</FileName>
    </AttachmentSampleVM>
    <AttachmentSampleVM>
      <AttachFile>QEBA</AttachFile>
      <FileName>sample string 1</FileName>
    </AttachmentSampleVM>
  </Attachments>
  <BarcodeTypeId>1</BarcodeTypeId>
  <BudgetHours>1</BudgetHours>
  <CalendarId>1</CalendarId>
  <CalendarType>1</CalendarType>
  <ClientId>9</ClientId>
  <Code>sample string 2</Code>
  <Completion>1</Completion>
  <ContractValue>1</ContractValue>
  <CostPercent>1</CostPercent>
  <CostValue>1</CostValue>
  <DescriptionAR>sample string 11</DescriptionAR>
  <DescriptionEN>sample string 10</DescriptionEN>
  <Direction>sample string 16</Direction>
  <EndDate>2021-10-20T18:56:45.9876167+02:00</EndDate>
  <HourPrice>1</HourPrice>
  <Id>1</Id>
  <InCT>sample string 15</InCT>
  <IntialValue>1</IntialValue>
  <ManagerId>14</ManagerId>
  <NameAR>sample string 3</NameAR>
  <NameEN>sample string 4</NameEN>
  <NumbHour>1</NumbHour>
  <PhaseId>1</PhaseId>
  <ProjectType>8</ProjectType>
  <ScopeAR>sample string 13</ScopeAR>
  <ScopeEN>sample string 12</ScopeEN>
  <StartDate>2021-10-20T18:56:45.9876167+02:00</StartDate>
  <Status>7</Status>
</Pro_Project_VM>

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

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "Result": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<GeneralErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP_Plus">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
</GeneralErrors>