wx-ai prompt-session update-lock

Modifies the current locked state of a prompt session.

Syntax

cpdctl wx-ai prompt-session update-lock \
--locked LOCKED \
--session-id SESSION-ID \
[--cpd-scope CPD-SCOPE] \
[--force FORCE] \
[--locked-by LOCKED-BY] \
[--lock-type LOCK-TYPE] \
[--project-id PROJECT-ID]

Options

Table 1: Command options
Option Description
--cpd-scope The IBM Software Hub space, project, or catalog scope. For example, cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135.
Status
Optional.
Syntax
--cpd-scope=<cpd-scope>
Input type
string
Default value
No default.
--force (Boolean)

Override a lock if it is taken.

--locked (Boolean)

True if the prompt is locked. Required.

--locked-by (string)

Locked by is computed by the server and must not be passed in.

The value must match the regular expression /[a-zA-Z0-9-]*/.

--lock-type (string)

Lock type. Use 'edit' for working on prompts or templates or 'governance'. This option can be supplied only in PUT /lock requests.

Allowable values are edit, governance.

--project-id (string)

Required. Specifies the project ID as the target. One target must be supplied per request.

The value must match the regular expression /[a-zA-Z0-9-]*/.

--session-id (string)

Prompt Session ID. Required.

The value must match the regular expression /[a-zA-Z0-9-]*/.

Examples

cpdctl wx-ai prompt-session update-lock \
    --session-id exampleString \
    --locked true \
    --lock-type edit \
    --locked-by IBMid-000000YYY0 \
    --project-id exampleString \
    --force true