Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleExample

Request

Code Block
DELETE https://<my-dam>/digizuitecore/legacyservice/api/admin/combo-values/50243
Authorization: AccessKey MII...Vtw=

Response

<Empty response>

Get combo nodes for tree to display

URL:

  • /digizuitecore/legacyservice/api/combo/values/metafield/{metafieldId}

  • /digizuitecore/legacyservice/api/combo/values/metafield/{metafieldId}/assignable

  • /digizuitecore/legacyservice/api/combo/values/metafield/{metafieldItemGuid}

  • /digizuitecore/legacyservice/api/combo/values/metafield/{metafieldItemGuid}/assignable

Method: GET

Auth required: YES

This gets the combo nodes which the authorized user has access to based on item security. It is available in two flavors. One which returns everything the user has read access to and the /assignable variant of the endpoint which returns everything the user has write access to. The difference between the two is what the user can assign to an asset (i.e. write) and what the user can see as assigned on the asset (i.e. read).

Request parameters:

Name

Type

Description

metafieldId

int

The metafield id of the tree metafield to fetch nodes for.

metafieldItemGuid

string/guid/uuid

The itemGuid of the tree metafield to fetch nodes for.

Response properties:

Name

Type

Description

id

int

A language-independent id for this combo value.

optionValue

string

A language-independent string value for this combo value.

sortIndex

int

A value indicating how this node should be sorted in relation to all other combo value.

metaFieldId

int

The metafield id of the metafield this combo value belongs to.

itemId

int

The itemId of the combo value.

itemGuid

string/guid/uuid

The itemGuid of the combo value.

labels

dictionary

The translations of this combo value. The key is the languageId.

labels.label

string

The title/name/label of the combo value in this language.

labels.languageId

int

The language id of this translation.

labels.comboValueId

int

The language specific id of this combo value.

Expand
titleExample

Request:

Code Block
GET https://<my-dam>/digizuitecore/legacyservice/api/combo/values/metafield/50243
Authorization: AccessKey MIIC...dEK

Response:

Code Block
languagejson
{
  "errorCode": 0,
  "errorMessage": "",
  "hasError": true,
  "items": [
    {
      "id": 50243,
      "optionValue": "api-test-updated",
      "sortIndex": 42,
      "metaFieldId": 10192,
      "itemId": 20500,
      "itemGuid": "9f2bfb9e-3d40-4940-be8e-d6d325c4c925",
      "labels": {
        "1": {
          "label": "Api test - Danish",
          "languageId": 1,
          "comboValueId": 50243
        },
        "3": {
          "label": "Api test - English",
          "languageId": 3,
          "comboValueId": 50244
        }
      }
    }
  ]
}      

Create new combo nodes while updating asset metadata

See documentation and examples here: https://digizuite.atlassian.net/wiki/spaces/DD/pages/3519873239/DC+5.8+core+api+Update+metadata#ComboValue-request-properties