Set prompt version environment

Set or clear the environment owned by a prompt version. Setting a non-null environment moves ownership atomically: any previous owner of that environment for the same prompt has its environment cleared in the same transaction. Setting null clears the environment from the version. The environment must already exist in the workspace registry; unknown names return 404.

Path parameters

versionIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
environmentstringOptionalformat: "^[A-Za-z0-9_-]+$"0-150 characters

Errors

400
Bad Request Error
404
Not Found Error