Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / clients / ocapiDeprecatedMessage

Function: ocapiDeprecatedMessage()

ocapiDeprecatedMessage(requiredScopes?): string

Defined in: packages/b2c-tooling-sdk/src/clients/error-utils.ts:47

Builds the user-facing guidance shown when an instance has OCAPI deprecated.

Pass the SCAPI scope(s) the failed operation requires to name them in the message (e.g. an operation needing sfcc.scripts.rw tells the user exactly which scope to add). Omit requiredScopes for operations that have no SCAPI equivalent — the message then uses the generic sfcc.* phrasing.

Parameters

requiredScopes?

string[]

Returns

string

Released under the Apache-2.0 License.