Scenario

Update a Scenario.

Changed on

Update a Scenario. Fields that are null will preserve the existing value. Fields that are provided (including empty values) will replace the existing value entirely.

post/v1/scenarios/{id}

Request

  • Base URL: https://api.runloop.ai
  • URL: https://api.runloop.ai/v1/scenarios/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

The Scenario ID.

Request body

namestring nullable

Name of the scenario. Cannot be blank.

metadataobject nullable

User defined metadata to attach to the scenario. Pass in empty map to clear.

required_environment_variablesstring[] nullable

Environment variables required to run the scenario. Pass in empty list to clear.

required_secret_namesstring[] nullable

Secrets required to run the scenario. Pass in empty list to clear.

reference_outputstring nullable

A string representation of the reference output to solve the scenario. Commonly can be the result of a git diff or a sequence of command actions to apply to the environment. Pass in empty string to clear.

validation_type'UNSPECIFIED' | 'FORWARD' | 'REVERSE' | 'EVALUATION'
scorer_timeout_secinteger nullable

Timeout for scoring in seconds. Default 30 minutes (1800s).

Response

OK

idstring required

The ID of the Scenario.

namestring required

The name of the Scenario.

metadataobject required

User defined metadata to attach to the scenario for organization.

reference_outputstring nullable

A string representation of the reference output to solve the scenario. Commonly can be the result of a git diff or a sequence of command actions to apply to the environment.

required_environment_variablesstring[]

Environment variables required to run the scenario. If any required environment variables are missing, the scenario will fail to start.

required_secret_namesstring[]

Environment variables required to run the scenario. If any required secrets are missing, the scenario will fail to start.

is_publicboolean

Whether this scenario is public.

validation_type'UNSPECIFIED' | 'FORWARD' | 'REVERSE' | 'EVALUATION'
scorer_timeout_secinteger nullable

Timeout for scoring in seconds. Default 30 minutes (1800s).

status'active' | 'archived' required

Changes

    • info

      added the new optional request property //////////

    • info

      added the optional property ////////// to the response with the status

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      removed the enum value EVALUATION of the request property

    • breaking

      removed the enum value FORWARD of the request property

    • breaking

      removed the enum value REVERSE of the request property

    • breaking

      removed the enum value UNSPECIFIED of the request property

    • breaking

      the request property type changed from object to no type

    • breaking

      the request property type changed from object to no type

    • breaking

      the request property type changed from object to no type

    • breaking

      the request property type changed from string to no type

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added subschema #2 to the request property anyOf list

    • info

      added subschema #2 to the request property anyOf list

    • info

      added subschema #2 to the request property anyOf list

    • info

      added subschema #2 to the request property anyOf list

    • info

      added subschema #2 to the response property anyOf list for the response status

    • info

      added subschema #2 to the response property anyOf list for the response status

    • info

      removed the EVALUATION enum value from the response property for the response status

    • info

      removed the FORWARD enum value from the response property for the response status

    • info

      removed the REVERSE enum value from the response property for the response status

    • info

      removed the UNSPECIFIED enum value from the response property for the response status