Trigger workflows on an interval or cron schedule.
Emit new event when a new asset is created in ContentStack.
Trigger your workflow on one or more days each month at a specific time (with timezone support).
Emit new event when a new entry is created in ContentStack.
Publishes a specific entry using its UID. See the documentation
Updates an existing Contentstack entry. See the documentation.
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
contentstack: {
type: "app",
app: "contentstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.contentstack.$auth.region}api.contentstack.io/v3/content_types`,
headers: {
"api_key": `${this.contentstack.$auth.stack_api_key}`,
"authorization": `${this.contentstack.$auth.management_token}`,
"content-type": `application/json`,
},
})
},
})