Skip to main content
Required scopes: support_macros_write

Arguments

Boolean
Create the tags the macros add that the store doesn’t have, in its default tag group, as the help desk import does. Needs support_config_write, which creating a tag needs.Requires: support_config_write
String
A key you choose, up to 100 characters, that makes a retry safe. For 24 hours, repeating the request with the same key returns the first result and writes nothing; that result is null if it has since been deleted or hidden. The same key with a different request throws IDEMPOTENCY_KEY_REUSED (422): repeat the first request exactly, or use a new key. While the first request is still running, a repeat throws CONFLICT (409): retry with the same key in a moment. A request that fails without writing frees its key, so a retry runs it again. Each mutation has its own keys.
1 to 100 macros, each in the shape supportMacroCreate takes, without inlineImages: the import copies the images a body links to. Each is checked as supportMacroCreate checks its input, and one that fails refuses the whole call, naming its index, before anything is written. Here a tag name the store lacks is created when createMissingTags is true, and fails the macro otherwise.

Returns

What an import did with each macro. It runs while the request waits, so the result is final.

Errors

Besides the errors any request can return, this operation fails with these codes in extensions.code.

Example