wx-ai prompt update-lock

Modifies the current locked state of a prompt.

Syntax

 pdctl wx-ai prompt update-lock \
[--cpd-scope CPD-SCOPE] \
[--force FORCE] \
--locked LOCKED \
[--locked-by LOCKED-BY] \
[--lock-type LOCK-TYPE] \
[--project-id PROJECT-ID] \
--prompt-id PROMPT-ID \
[--space-id SPACE-ID]

Options

Table 1: Command options
Option Description
--cpd-scope (string) 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) The project that contains the deployment. Either space_id or project_id must be given.
Status
Optional.
Syntax
--project-id=<project-id>
Input type
string
Default value
No default.
--prompt-id (string) Prompt ID. The value must match the regular expression /[a-zA-Z0-9-]*/.
Status
Required.
Input type
string
Syntax
--prompt-id=<prompt-id>
--space-id (string) The space that contains the deployment. Either space_id or project_id must be given.
Status
Optional.
Syntax
--space-id=<space-identifier>
Default value
No default.
Input type
string

Examples

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