younifyd
Menu

Create Hub

Create Hub

POST/hubs

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Create Hub action (under Hubs).
  3. Fill in the fields below, then reference the result from later steps as {{createHub.response.data}}.

Fields

baseUrlstring

The API host this action calls. Override to point at a different environment.

Default "https://api.amplience.net/v2/content"

bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 201 with an object. Read it in later steps with {{createHub.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.