Skip to main content
POST
/
actions
/
modules
/
{id}
/
rollback
Rollback an Actions Module to a previous version
curl --request POST \
  --url https://{tenantDomain}/api/v2/actions/modules/{id}/rollback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "module_version_id": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "code": "<string>",
  "dependencies": [
    {
      "name": "<string>",
      "version": "<string>"
    }
  ],
  "secrets": [
    {
      "name": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "actions_using_module_total": 123,
  "all_changes_published": true,
  "latest_version_number": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "latest_version": {
    "id": "<string>",
    "version_number": 123,
    "code": "<string>",
    "dependencies": [
      {
        "name": "<string>",
        "version": "<string>"
      }
    ],
    "secrets": [
      {
        "name": "<string>",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique ID of the module to roll back.

Body

module_version_id
string
required

The unique ID of the module version to roll back to.

Response

The rollback was successful.

id
string

The unique ID of the module.

name
string

The name of the module.

code
string

The source code from the module's draft version.

dependencies
object[]

The npm dependencies from the module's draft version.

secrets
object[]

The secrets from the module's draft version (names and timestamps only, values never returned).

actions_using_module_total
integer

The number of deployed actions using this module.

all_changes_published
boolean

Whether all draft changes have been published as a version.

latest_version_number
integer

The version number of the latest published version. Omitted if no versions have been published.

created_at
string<date-time>

Timestamp when the module was created.

updated_at
string<date-time>

Timestamp when the module was last updated.

latest_version
object

The latest published version as a reference object. Omitted if no versions have been published.