@salesforce/b2c-tooling-sdk / operations/mrt / MrtRedirectView
Interface: MrtRedirectView
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:639
A single redirect row, normalized across the legacy and SCAPI backends so the CLI renders one shape regardless of backend.
The two backends identify a redirect differently: the legacy MRT Cloud API keys a redirect by its from_path, while the SCAPI Environments API assigns a UUID redirectId and treats the source path as an ordinary (mutable) field. id therefore carries the backend-appropriate identifier to pass back to get/update/delete — the from_path on legacy, the UUID on SCAPI — while source always holds the human-readable source path. On legacy the two are equal; on SCAPI they differ.
Properties
backend
backend:
MrtBackend
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:659
Backend that produced this row.
createdAt?
optionalcreatedAt:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:655
Creation timestamp (ISO 8601), when present.
createdBy?
optionalcreatedBy:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:657
Email of the user who created the redirect, when present.
destination
destination:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:645
The destination path or URL (legacy to_url / SCAPI destination).
forwardQuerystring?
optionalforwardQuerystring:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:649
Whether the incoming query string is forwarded to the destination.
forwardWildcard?
optionalforwardWildcard:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:651
Whether a trailing wildcard match on the source is forwarded to the destination.
httpStatusCode?
optionalhttpStatusCode:number
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:647
HTTP status code (301 or 302), when reported.
id
id:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:641
Identifier for get/update/delete: the from_path on legacy, the UUID on SCAPI.
source
source:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:643
The source path that triggers the redirect (legacy from_path / SCAPI source).
status?
optionalstatus:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:653
Human-readable publishing status, when the backend reports one.