Send a POST request to an API path using the active profile and credential.
Needs a stored key (svanja login) or SVANJA_API_KEY.
Details
<path> is API-relative and is joined below the resolved API base. Give a path like /projects or projects. A bare first segment containing a colon is rejected as ambiguous URI syntax; a colon after an explicit leading slash or in a later segment remains opaque path data. Absolute and scheme-relative URLs, query or fragment markers, trailing slashes, and empty segments fail locally. Put query parameters in --query key=value (repeatable); values may be empty or contain commas and equals signs, and repeated values retain their order.
Build a JSON body with --field key=value (repeatable), pass any valid JSON value with --body '<json>', or read one with --body-file <path>. Use --body-file - to read from stdin. These body modes are mutually exclusive, and duplicate --field keys fail locally. A POST with no body sends no Content-Type and no JSON null body.
Replayable POST routes send an idempotency key so a retried request is not applied twice. A key is generated automatically; pass --idempotency-key <key> to supply your own (1-255 visible ASCII bytes). Key values are sensitive: output reports only whether a key is generated, explicit, or suppressed and never prints the value.
Generated idempotency and automatic retry are suppressed for v1 routes that return one-time plaintext secrets: /api-keys and /api-keys/{api_key_id}/rotate. An explicit --idempotency-key is still validated and sent as advanced user intent, but the server may reject it and the CLI still makes only one attempt for those routes.
Use --dry-run to preview the method, path, query, body, idempotency behavior, and any non-replayable retry policy without resolving credentials or contacting the API.
POST is an unsafe raw action and does not ask for confirmation. Choosing this leaf is the explicit decision to send it; --force is not required.
By default the decoded "data" value of the API success envelope is printed. Use --raw to print the full success envelope, including data, meta, request_id, and unknown envelope keys. --raw and --dry-run cannot be combined.
Mark a request value as sensitive with --secret-field <name> (repeatable). Named query values, field values, and matching JSON body keys are shown as [REDACTED] in dry-run previews, --debug output, and rendered errors; the flag does not add a request value.
JSON output is the selected machine value as stable JSON. Default human and --plain output print scalar values without JSON quotes; objects, arrays, and null print as JSON because the raw shape is not known ahead of time.
--include-meta adds safe transport context under meta when --json, --jq, or --template is selected. The ordinary value moves under data; output without --include-meta remains unchanged. It cannot be combined with --dry-run.
Output modes: default human, --plain, --json stable JSON, and --jq/--template transforms over the selected JSON value.