Contentstack

App · 25 actions

Create, update, translate and publish entries and assets, and deploy releases in Contentstack.

Actions

ActionWhat it does
Add item to releaseAdd an entry or an asset to a release, to be published or unpublished when the release is deployed.
Create entryCreate an entry in a content type.
Create releaseCreate a release, to gather entries and assets and publish them together.
Delete assetDelete an asset from the stack.
Delete entryDelete an entry.
Delete releaseDelete a release.
Deploy releasePublish or unpublish everything in a release on environments, now or at a set time.
Get assetGet an asset's details, including its file address.
Get content typeGet a content type with its fields, so you can see each field's ID.
Get entryGet an entry with all its fields.
List assetsList the stack's assets (images, videos and other files), with the total count.
List content typesList the stack's content types, such as Blog post or Page, with their fields.
List entriesList the entries of a content type, with the total count.
List environmentsList the stack's publishing environments, such as development and production.
List languagesList the languages the stack's content is written in, with their codes.
List releasesList the stack's releases: sets of entries and assets published together.
List taxonomiesList the stack's taxonomies, the shared sets of terms used to classify entries.
Localize entryTranslate an entry into another language, giving it that language's own title and fields.
Publish assetPublish an asset to environments, now or at a set time.
Publish entryPublish an entry's latest version to environments, now or at a set time.
Unlocalize entryRemove an entry's own content in one language, so that language shows the content of the language it falls back to.
Unpublish assetTake an asset off environments, now or at a set time.
Unpublish entryTake an entry off environments, now or at a set time.
Update entryChange an entry's title, tags or fields.
Upload assetUpload a file to the stack's assets, from a file or a public link.

Add item to release

Add an entry or an asset to a release, to be published or unpublished when the release is deployed.

Inputs

Releaserelease_uidtextRequired
The release, whose ID starts with blt.
Content typecontent_type_uidtext
For an entry: its content type. Leave empty to add an asset.
Entry or asset IDitem_uidtextRequired
The entry or asset to add, by its ID.
Actionrelease_actiontext
Whether deploying the release publishes or unpublishes the item.One of: publish, unpublish. Default: publish.
Languagelocaletext
For an entry: the language to add. Leave empty for the entry's own language.
Versionversionnumber
The version to add. Leave empty for the latest.At least 1.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example",
    "release": {
      "created_at": "example",
      "created_by": "example",
      "description": "example",
      "items": [
        {
          "action": "example",
          "content_type_uid": "example",
          "locale": "example",
          "title": "example",
          "uid": "example",
          "version": 1
        }
      ],
      "locked": true,
      "name": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example"
    }
  }
}

Create entry

Create an entry in a content type. It stays a draft until you publish it.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
TitletitletextRequired
The entry's title.
Fieldsfieldsobject
The entry's other fields, by field ID (shown in the content type), for example {"url": "/news/launch", "summary": "Our launch"}.
Tagstagslist
Tags for the entry.
Languagelocaletext
Create the entry in this language. Leave empty for the stack's main language.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "entry": {
      "_in_progress": true,
      "_version": 1,
      "created_at": "example",
      "created_by": "example",
      "locale": "example",
      "tags": [
        "example"
      ],
      "title": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example"
    },
    "notice": "example"
  }
}

Create release

Create a release, to gather entries and assets and publish them together.

Inputs

NamenametextRequired
The release's name.
Descriptiondescriptiontext
What the release is for.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example",
    "release": {
      "created_at": "example",
      "created_by": "example",
      "description": "example",
      "locked": true,
      "name": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example"
    }
  }
}

Delete asset

Delete an asset from the stack.

Inputs

Assetasset_uidtextRequired
The asset (file), whose ID starts with blt.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Delete entry

Delete an entry. Contentstack keeps it in the stack's trash for a while.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Entryentry_uidtextRequired
The entry, whose ID starts with blt.
Languagelocaletext
Delete only this language's version. Leave empty for the main language.
Delete all languagesdelete_all_localizedtrue/false
Also delete every translated version of the entry.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Delete release

Delete a release. The entries and assets in it are not deleted.

Inputs

Releaserelease_uidtextRequired
The release, whose ID starts with blt.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Deploy release

Publish or unpublish everything in a release on environments, now or at a set time.

Inputs

Releaserelease_uidtextRequired
The release, whose ID starts with blt.
EnvironmentsenvironmentslistRequired
The environments to deploy to, such as production.
Languageslocaleslist
The languages to deploy. Leave empty for every language in the release.
Actionrelease_actiontext
Publish everything in the release (the default), or unpublish it.One of: publish, unpublish. Default: publish.
Scheduled forscheduled_atdate and time
When to deploy. Leave empty to deploy now.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Get asset

Get an asset's details, including its file address.

Inputs

Assetasset_uidtextRequired
The asset (file), whose ID starts with blt.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "asset": {
      "_version": 1,
      "content_type": "example",
      "created_at": "example",
      "created_by": "example",
      "description": "example",
      "file_size": "example",
      "filename": "example",
      "is_dir": true,
      "parent_uid": "example",
      "tags": [
        "example"
      ],
      "title": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example",
      "url": "example"
    }
  }
}

Get content type

Get a content type with its fields, so you can see each field's ID.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "content_type": {
      "_version": 1,
      "created_at": "example",
      "description": "example",
      "options": {
        "is_page": true,
        "singleton": true
      },
      "schema": [
        {
          "data_type": "example",
          "display_name": "example",
          "mandatory": true,
          "uid": "example"
        }
      ],
      "title": "example",
      "uid": "example",
      "updated_at": "example"
    }
  }
}

Get entry

Get an entry with all its fields.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Entryentry_uidtextRequired
The entry, whose ID starts with blt.
Languagelocaletext
Get the entry in this language. Leave empty for the stack's main language.
Versionversionnumber
Get this earlier version of the entry. Leave empty for the latest.At least 1.
Include publish detailsinclude_publish_detailstrue/false
Include where and when the entry was published.
Include workflow stageinclude_workflowtrue/false
Include the entry's workflow stage.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "entry": {
      "_in_progress": true,
      "_version": 1,
      "_workflow": {
        "name": "example",
        "uid": "example"
      },
      "created_at": "example",
      "created_by": "example",
      "locale": "example",
      "publish_details": [
        {
          "environment": "example",
          "locale": "example",
          "time": "example"
        }
      ],
      "tags": [
        "example"
      ],
      "title": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example"
    }
  }
}

List assets

List the stack's assets (images, videos and other files), with the total count.

Inputs

Ordersorttext
The order to list them in. Newest first by default.One of: newest (Newest first), oldest (Oldest first), recently_updated (Recently updated first).
Limitlimitnumber
How many assets to return, up to 100.From 1 to 100.
Skipskipnumber
How many assets to skip, to read the next page.At least 0.
Include publish detailsinclude_publish_detailstrue/false
Include where and when each asset was published.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "assets": [
      {
        "_version": 1,
        "content_type": "example",
        "created_at": "example",
        "created_by": "example",
        "description": "example",
        "file_size": "example",
        "filename": "example",
        "is_dir": true,
        "parent_uid": "example",
        "publish_details": [
          {
            "environment": "example",
            "locale": "example",
            "time": "example"
          }
        ],
        "tags": [
          "example"
        ],
        "title": "example",
        "uid": "example",
        "updated_at": "example",
        "updated_by": "example",
        "url": "example"
      }
    ],
    "count": 1
  }
}

List content types

List the stack's content types, such as Blog post or Page, with their fields.

Inputs

Limitlimitnumber
How many content types to return, up to 100.From 1 to 100.
Skipskipnumber
How many content types to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "content_types": [
      {
        "_version": 1,
        "created_at": "example",
        "description": "example",
        "options": {
          "is_page": true,
          "singleton": true
        },
        "schema": [
          {
            "data_type": "example",
            "display_name": "example",
            "mandatory": true,
            "uid": "example"
          }
        ],
        "title": "example",
        "uid": "example",
        "updated_at": "example"
      }
    ],
    "count": 1
  }
}

List entries

List the entries of a content type, with the total count.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Languagelocaletext
List the entries in this language. Leave empty for the stack's main language.
Filterfilterobject
Only entries whose fields match, for example {"url": "/about"}. Contentstack's query operators such as $in and $regex work too.
Ordersorttext
The order to list them in. Newest first by default.One of: newest (Newest first), oldest (Oldest first), recently_updated (Recently updated first).
Limitlimitnumber
How many entries to return, up to 100.From 1 to 100.
Skipskipnumber
How many entries to skip, to read the next page.At least 0.
Include publish detailsinclude_publish_detailstrue/false
Include where and when each entry was published.
Include workflow stageinclude_workflowtrue/false
Include each entry's workflow stage.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "count": 1,
    "entries": [
      {
        "_in_progress": true,
        "_version": 1,
        "_workflow": {
          "name": "example",
          "uid": "example"
        },
        "created_at": "example",
        "created_by": "example",
        "locale": "example",
        "publish_details": [
          {
            "environment": "example",
            "locale": "example",
            "time": "example"
          }
        ],
        "tags": [
          "example"
        ],
        "title": "example",
        "uid": "example",
        "updated_at": "example",
        "updated_by": "example"
      }
    ]
  }
}

List environments

List the stack's publishing environments, such as development and production.

Inputs

None.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "count": 1,
    "environments": [
      {
        "_version": 1,
        "created_at": "example",
        "name": "example",
        "uid": "example",
        "updated_at": "example",
        "urls": [
          {
            "locale": "example",
            "url": "example"
          }
        ]
      }
    ]
  }
}

List languages

List the languages the stack's content is written in, with their codes.

Inputs

None.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "count": 1,
    "locales": [
      {
        "code": "example",
        "created_at": "example",
        "fallback_locale": "example",
        "name": "example",
        "uid": "example",
        "updated_at": "example"
      }
    ]
  }
}

List releases

List the stack's releases: sets of entries and assets published together.

Inputs

Limitlimitnumber
How many releases to return, up to 100.From 1 to 100.
Skipskipnumber
How many releases to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "count": 1,
    "releases": [
      {
        "created_at": "example",
        "created_by": "example",
        "description": "example",
        "locked": true,
        "name": "example",
        "uid": "example",
        "updated_at": "example",
        "updated_by": "example"
      }
    ]
  }
}

List taxonomies

List the stack's taxonomies, the shared sets of terms used to classify entries.

Inputs

Limitlimitnumber
How many taxonomies to return, up to 100.From 1 to 100.
Skipskipnumber
How many taxonomies to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "count": 1,
    "taxonomies": [
      {
        "created_at": "example",
        "description": "example",
        "name": "example",
        "uid": "example",
        "updated_at": "example"
      }
    ]
  }
}

Localize entry

Translate an entry into another language, giving it that language's own title and fields.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Entryentry_uidtextRequired
The entry, whose ID starts with blt.
LanguagelocaletextRequired
The language to translate the entry into, such as fr-fr.
TitletitletextRequired
The entry's title.
Fieldsfieldsobject
The entry's other fields, by field ID (shown in the content type), for example {"url": "/news/launch", "summary": "Our launch"}.
Tagstagslist
Tags for the entry.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "entry": {
      "_in_progress": true,
      "_version": 1,
      "created_at": "example",
      "created_by": "example",
      "locale": "example",
      "tags": [
        "example"
      ],
      "title": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example"
    },
    "notice": "example"
  }
}

Publish asset

Publish an asset to environments, now or at a set time.

Inputs

Assetasset_uidtextRequired
The asset (file), whose ID starts with blt.
EnvironmentsenvironmentslistRequired
The environments to publish to, such as production.
LanguageslocaleslistRequired
The languages to publish to.
Scheduled forscheduled_atdate and time
When to publish to. Leave empty to do it now.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Publish entry

Publish an entry's latest version to environments, now or at a set time.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Entryentry_uidtextRequired
The entry, whose ID starts with blt.
EnvironmentsenvironmentslistRequired
The environments to publish to, such as production.
LanguageslocaleslistRequired
The languages to publish to.
Scheduled forscheduled_atdate and time
When to publish to. Leave empty to do it now.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Unlocalize entry

Remove an entry's own content in one language, so that language shows the content of the language it falls back to.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Entryentry_uidtextRequired
The entry, whose ID starts with blt.
LanguagelocaletextRequired
The language to unlocalize.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Unpublish asset

Take an asset off environments, now or at a set time.

Inputs

Assetasset_uidtextRequired
The asset (file), whose ID starts with blt.
EnvironmentsenvironmentslistRequired
The environments to unpublish from, such as production.
LanguageslocaleslistRequired
The languages to unpublish from.
Scheduled forscheduled_atdate and time
When to unpublish from. Leave empty to do it now.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Unpublish entry

Take an entry off environments, now or at a set time.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Entryentry_uidtextRequired
The entry, whose ID starts with blt.
EnvironmentsenvironmentslistRequired
The environments to unpublish from, such as production.
LanguageslocaleslistRequired
The languages to unpublish from.
Scheduled forscheduled_atdate and time
When to unpublish from. Leave empty to do it now.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "notice": "example"
  }
}

Update entry

Change an entry's title, tags or fields. Fields left out keep their values.

Inputs

Content typecontent_type_uidtextRequired
The content type, such as Blog post or Page.
Entryentry_uidtextRequired
The entry, whose ID starts with blt.
Titletitletext
The entry's title.
Fieldsfieldsobject
The entry's other fields, by field ID (shown in the content type), for example {"url": "/news/launch", "summary": "Our launch"}.
Tagstagslist
Tags for the entry.
Languagelocaletext
Update the entry in this language. Leave empty for the stack's main language.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "entry": {
      "_in_progress": true,
      "_version": 1,
      "created_at": "example",
      "created_by": "example",
      "locale": "example",
      "tags": [
        "example"
      ],
      "title": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example"
    },
    "notice": "example"
  }
}

Upload asset

Upload a file to the stack's assets, from a file or a public link.

Inputs

FilefiletextRequired
The file to upload, or a public link to it.
Titletitletext
A title for the asset. Leave empty to use the file name.
Descriptiondescriptiontext
A description of the asset.
Tagstagstext
Tags for the asset, separated by commas.
Folder IDfolder_uidtext
The folder to put the asset in, by its ID. Leave empty for the top level.

Outputs

dataobject
The response from Contentstack.
Example output
{
  "data": {
    "asset": {
      "_version": 1,
      "content_type": "example",
      "created_at": "example",
      "created_by": "example",
      "description": "example",
      "file_size": "example",
      "filename": "example",
      "is_dir": true,
      "parent_uid": "example",
      "tags": [
        "example"
      ],
      "title": "example",
      "uid": "example",
      "updated_at": "example",
      "updated_by": "example",
      "url": "example"
    },
    "notice": "example"
  }
}

On this page