Skip to main content
POST
C#

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 ID of an action version.

actionId
string
required

The ID of an action.

Body

update_draft
boolean
default:false

True if the draft of the action should be updated with the reverted version.

Response

Request to create action version was accepted.

id
string
default:12a3b9e6-06e6-4a29-96bf-90c82fe79a0d

The unique id of an action version.

action_id
string
default:910b1053-577f-4d81-a8c8-020e7319a38a

The id of the action to which this version belongs.

code
string
default:module.exports = () => {}

The source code of this specific version of the action.

dependencies
object[]

The list of third party npm modules, and their versions, that this specific version depends on.

deployed
boolean
default:true

Indicates if this specific version is the currently one deployed.

runtime
string
default:node22

The Node runtime. For example: node22

secrets
object[]

The list of secrets that are included in an action or a version of an action.

status
enum<string>
default:built

The build status of this specific version.

Available options:
pending,
building,
packaged,
built,
retrying,
failed
number
number
default:1

The index of this version in list of versions for the action.

errors
object[]

Any errors that occurred while the version was being built.

action
object

The action to which this version belongs.

built_at
string<date-time>
default:2021-01-01T00:00:00.000Z

The time when this version was built successfully.

created_at
string<date-time>
default:2021-01-01T00:00:00.000Z

The time when this version was created.

updated_at
string<date-time>
default:2021-01-01T00:00:00.000Z

The time when a version was updated. Versions are never updated externally. Only Auth0 will update an action version as it is being built.

supported_triggers
object[]

The list of triggers that this version supports. At this time, a version can only target a single trigger at a time.

Minimum array length: 1
modules
object[]

The list of action modules and their versions used by this action version.