younifyd
Menu

Enable Cd2 Module

Enable the Content Delivery 2 module on a hub

POST/admin/modules/hubs/{hubId}/content-delivery-2

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Enable Cd2 Module action (under Administration).
  3. Fill in the fields below, then reference the result from later steps as {{enableCd2Module.response.data}}.

Request

Path parameters

hubIdstringrequired

Hub ID

Response

Returns 200 with an object. Read it in later steps with {{enableCd2Module.response.data.<field>}}.

idstring

ID

namestring

Hub name

labelstring

Hub label

descriptionany

Hub description

planstring

Hub Plan

One ofDEVELOPER

algoliaSearchstring

Algolia Search enabled flag

One ofENABLED

cdv2string

CD2 enabled flag

One ofENABLED

organizationIdstring

Organization ID

settingsobject

Hub settings

publishingobject1 fields
devicesarray<object>4 fields
localizationobject1 fields
applicationsarray<object>2 fields
previewVirtualStagingEnvironmentobject1 fields
virtualStagingEnvironmentobject1 fields
assetManagementobject2 fields
contentItemsobject1 fields
_linksobject

Resource HAL links

selfanyrequired
hubanyrequired
snapshotsany
create-snapshotany
batch-create-snapshotany
eventsany
create-eventany
archiveany
updateany
deleteany
update-settingsany
shareany
content-repositoriesany
create-content-repositoryany
register-content-typesany
create-content-type-schemaany
content-typesany
list-content-type-schemasany
resolve-content-type-schemaany
search-content-itemsany
facet-content-itemsany
search-localization-jobsany
webhooksany
create-webhookany
integrationsany
create-workflow-stateany
workflow-statesany
create-algolia-search-indexany
algolia-search-indexesany
json
{
  "id": "00112233445566778899aabb",
  "name": "anya-finn",
  "label": "Anya Finn",
  "description": "Content for anyafinn.com",
  "plan": "DEVELOPER",
  "algoliaSearch": "ENABLED",
  "cdv2": "ENABLED",
  "organizationId": "org_cDQVi4ww5y6cMPtN",
  "settings": {
    "publishing": {
      "platforms": {
        "amplience_dam": {
          "API_KEY": "DAM_CLIENT_KEY",
          "API_SECRET": "DAM_CLIENT_SECRET",
          "endpoint": "endpoint"
        }
      }
    },
    "devices": [
      {
        "name": "New Device",
        "width": 2048,
        "height": 1024,
        "orientate": false
      }
    ],
    "localization": {
      "locales": [
        "en-GB",
        "fr-FR"
      ]
    },
    "applications": [
      {
        "name": "Preview Site",
        "templatedUri": "http://example.com"
      }
    ],
    "previewVirtualStagingEnvironment": {
      "hostname": "unique-id.staging.bigcontent.io"
    },
    "virtualStagingEnvironment": {
      "hostname": "unique-id.staging.bigcontent.io"
    },
    "assetManagement": {
      "enabled": false,
      "clientConfig": "HUB"
    },
    "contentItems": {
      "validation": {
        "ignoreSchemaValidation": false
      }
    }
  },
  "_links": {
    "self": null,
    "hub": null,
    "snapshots": null,
    "create-snapshot": null,
    "batch-create-snapshot": null,
    "events": null,
    "create-event": null,
    "archive": null,
    "update": null,
    "delete": null,
    "update-settings": null,
    "share": null
  }
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.