Menu
Create Extension
Create Extension
POST
/hubs/{hubId}/extensionsUse it in a workflow
- Add a step and choose the Amplience connector.
- Pick the Create Extension action (under Extensions).
- Fill in the fields below, then reference the result from later steps as
{{createExtension.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"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 {{createExtension.response.data.<field>}}.
{
"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.
Was this page helpful?