POST api/cost/externalimport

Import costs from any source.

Request Information

URI Parameters

None.

Body Parameters

ImportPlanCostObject
NameDescriptionTypeAdditional information
PlanExternalId

string

None.

CostTypeId

globally unique identifier

None.

CostTypeName

string

None.

CustomCategories

Collection of ImportCostCustom

None.

Costs

Collection of ImportCostObject

None.

Fields

Collection of ImportCostFields

None.

Delete

ImportDeleteCosts

None.

Request Formats

application/json, text/json

Sample:
{
  "PlanExternalId": "sample string 1",
  "CostTypeId": "5d321e0e-1f53-43a5-adcf-3ba36f6fd634",
  "CostTypeName": "sample string 3",
  "CustomCategories": [
    {
      "CostName": "sample string 1",
      "CostExternalId": "sample string 2",
      "ParentCostExternalId": "sample string 3"
    },
    {
      "CostName": "sample string 1",
      "CostExternalId": "sample string 2",
      "ParentCostExternalId": "sample string 3"
    }
  ],
  "Costs": [
    {
      "CostExternalId": "sample string 1",
      "CostDate": "2024-10-18T08:30:49.293338+00:00",
      "CostValue": 3.0
    },
    {
      "CostExternalId": "sample string 1",
      "CostDate": "2024-10-18T08:30:49.293338+00:00",
      "CostValue": 3.0
    }
  ],
  "Fields": [
    {
      "CostExternalId": "sample string 1",
      "Fields": {
        "sample string 1": {},
        "sample string 3": {}
      }
    },
    {
      "CostExternalId": "sample string 1",
      "Fields": {
        "sample string 1": {},
        "sample string 3": {}
      }
    }
  ],
  "Delete": {
    "StartDate": "2024-10-18T08:30:49.293338+00:00",
    "EndDate": "2024-10-18T08:30:49.293338+00:00",
    "Scope": 0
  }
}

Response Information

Resource Description

ImportResult
NameDescriptionTypeAdditional information
Status

ImportResultStatus

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "Message": "sample string 1"
}