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.
|
--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 |
--lock-type (string) |
Lock type. Use 'edit' for working on prompts or templates or 'governance'. This option can be
supplied only in Allowable values are |
--project-id (string) |
The project that contains
the deployment. Either space_id or project_id must be
given.
|
--prompt-id (string) |
Prompt ID. The value must match
the regular expression /[a-zA-Z0-9-]*/.
|
--space-id (string) |
The space that contains the
deployment. Either space_id or project_id must be given.
|
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