cliHosted AI, explicit consent

Review comment draft

pipeline review-comment-draft

Act on a single AI-drafted comment: approve, reject, edit-then-approve, send it live to LinkedIn, or regenerate it with new instructions.

Parameters

workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
draftIdrequired
string
The comment draft UUID.
actionrequired
string
No description.
approve | reject | edit | send | regenerate
edited_comment
string
Required for action=edit. Also usable to override the sent text for action=send.
rejection_reason
string
Optional context for action=reject.
instructions
string
Regeneration guidance for action=regenerate.
allowHostedAi
boolean
Must be true when this operation uses Pipeline hosted inference.

Example

CLI commandbash
pipeline review-comment-draft \
--draft-id "00000000-0000-4000-8000-000000000000" \
--action "approve" \
--allow-hosted-ai

Response

The operation is available, but its typed response schema has not been published yet.

Exit codes

1
Invalid input or local configuration.
2
The API or tool returned an error.
3
Authentication failed.
4
A network request failed.
Pipeline CLI documentation | Pipeline