younifyd
Menu

Patch Extension

Patch Extension

PATCH/extensions/{id}

Use it in a workflow

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

Request

Path parameters

extensionIdstringrequired

Extension ID

Request body

Enter the body as JSON in the step's Body field.

hubIdstring

ID

namestringrequired

System name

labelstringrequired

User friendly name

descriptionstring

Description

urlstringrequired

Url

heightinteger

Height of the extension

enabledForAllContentTypesboolean

Sets whether the extension is globally enabled or intended for a specific content type

Default true

categorystringrequired

Type of extension

One ofCONTENT_FIELD

parametersarray<object>

Array of config parameters

parameterobject

extension config parameter

snippetsarray<object>

Array of snippets

labelstring

snippet label

bodyobject

snippet

settingsstring

The settings parameter is used to store undefined extension settings such as security rule.

statusstringrequired

One ofACTIVEDELETED

createdBystringrequired

User who created the Extension

createdDatestringrequired

Created Date

lastModifiedBystringrequired

User who last changed the Extension

lastModifiedDatestringrequired

Last modified date

_linksobjectrequired

Resource HAL links

selfany
extensionany
hubany
updateany
deleteany
json
{
  "name": "Extension-01",
  "label": "Extension-01 first-draft",
  "url": "http://example.com",
  "category": "CONTENT_FIELD",
  "status": "ACTIVE",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "createdDate": "2019-01-01T00:00:00.000Z",
  "lastModifiedBy": "00112233-4455-6677-8899-aabbccddeeff",
  "lastModifiedDate": "2019-01-01T00:00:00.000Z",
  "_links": {
    "self": null,
    "extension": null,
    "hub": null,
    "update": null,
    "delete": null
  },
  "hubId": "00112233445566778899aabb",
  "description": "This is a description of an extension."
}

Response

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

hubIdstring

ID

namestring

System name

labelstring

User friendly name

descriptionstring

Description

urlstring

Url

heightinteger

Height of the extension

enabledForAllContentTypesboolean

Sets whether the extension is globally enabled or intended for a specific content type

Default true

categorystring

Type of extension

One ofCONTENT_FIELD

parametersarray<object>

Array of config parameters

parameterobject

extension config parameter

snippetsarray<object>

Array of snippets

labelstring

snippet label

bodyobject

snippet

settingsstring

The settings parameter is used to store undefined extension settings such as security rule.

statusstring

One ofACTIVEDELETED

createdBystring

User who created the Extension

createdDatestring

Created Date

lastModifiedBystring

User who last changed the Extension

lastModifiedDatestring

Last modified date

_linksobject

Resource HAL links

selfany
extensionany
hubany
updateany
deleteany
json
{
  "name": "Extension-01",
  "label": "Extension-01 first-draft",
  "url": "http://example.com",
  "category": "CONTENT_FIELD",
  "status": "ACTIVE",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "createdDate": "2019-01-01T00:00:00.000Z",
  "lastModifiedBy": "00112233-4455-6677-8899-aabbccddeeff",
  "lastModifiedDate": "2019-01-01T00:00:00.000Z",
  "_links": {
    "self": null,
    "extension": null,
    "hub": null,
    "update": null,
    "delete": null
  },
  "hubId": "00112233445566778899aabb",
  "description": "This is a description of an extension."
}

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