opal-scripts

Update OpalScript

Changed on

Updates an OpalScript object.

put/opal-scripts/{opal_script_id}

Request

  • Base URL
    https://api.opal.dev/v1
  • Auth
    HTTP bearer

Path parameters

opal_script_idstring uuid required

The ID of the OpalScript.

Request body

namestring

The name of the OpalScript.

scriptstring

The source of the OpalScript. A new version is recorded only when the source differs from the current one.

Example request

{
  "name": "MFA check"
}

Response

The updated OpalScript.

opal_script_idstring uuid required

The ID of the OpalScript.

namestring required

The name of the OpalScript.

script_type'REQUEST_REVIEW' | 'REQUEST_DELEGATION_CONDITION' | 'CONTEXT_PROVIDER' | 'REQUEST_CONFIGURATION_CONDITION' required

The kind of automation an OpalScript performs.

scriptstring required

The source of the OpalScript's latest version.

versioninteger required

The version number of the OpalScript's latest version.

updated_atstring date-time

The date the OpalScript was last updated.

Example response

{
  "opal_script_id": "32acc112-21ff-4669-91c2-21e27683eaa1",
  "name": "MFA check",
  "script_type": "REQUEST_REVIEW",
  "version": 3
}

Changes