POST api/cost/externalimport
Import costs from any source.
Request Information
URI Parameters
None.
Body Parameters
ImportPlanCostObjectName | Description | Type | Additional 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": "01520346-2b35-45a5-af32-6d3858044d86", "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-12-18T19:55:54.9947935+00:00", "CostValue": 3.0 }, { "CostExternalId": "sample string 1", "CostDate": "2024-12-18T19:55:54.9947935+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-12-18T19:55:54.9947935+00:00", "EndDate": "2024-12-18T19:55:54.9947935+00:00", "Scope": 0 } }
Response Information
Resource Description
ImportResultName | Description | Type | Additional information |
---|---|---|---|
Status | ImportResultStatus |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 0, "Message": "sample string 1" }