POST json/DNKDataImportFullArray

Imports a complete Sustainability Code record list.

Request Information

URI Parameters

None.

Body Parameters

Variant of the DNKImportDataSet that is structured in "key-value" pairs.

DNKImportDataList
NameDescriptionTypeAdditional information
catalogData

List of import objects

Collection of DNKImportItem

None.

Request Formats

application/json, text/json

Sample:
{
  "catalogData": [
    {
      "kpiID": "sample string 1",
      "value": "sample string 2"
    },
    {
      "kpiID": "sample string 1",
      "value": "sample string 2"
    }
  ]
}

Response Information

Resource Description

Json response with information regarding the import

DNKImportRestApiResponse
NameDescriptionTypeAdditional information
ImportSuccessful

Info about the success of the import

boolean

None.

ValidRequest

Info about the validity of the request

boolean

None.

TokenStatus

Check status of the security or authorization tokens transferred in the Webapi. UnknownError = -2 Unchecked = -1 OK = 0, InvalidToken = 1 ReportClosed = 2 EmptyToken = 3

integer

None.

ReportLocked

Indicator if the Report is locked

boolean

None.

EmptyFields

Import Fields without Text

Collection of DNKImportResponseField

None.

InvalidFields

Invalid import Fields

Collection of DNKImportResponseField

None.

ImportedFields

Invalid import Fields

Collection of DNKImportResponseField

None.

NotMatchedFields

Fields that could not be assigned

Collection of DNKImportResponseField

None.

MatchedFields

Fields that have been assigned

Collection of DNKImportResponseField

None.

Response Formats

application/json, text/json

Sample:
{
  "ImportSuccessful": true,
  "ValidRequest": true,
  "TokenStatus": 3,
  "ReportLocked": true,
  "EmptyFields": null,
  "InvalidFields": null,
  "ImportedFields": null,
  "NotMatchedFields": null,
  "MatchedFields": null
}