Admin API / Types
UpdateMarketplaceInput
InputChanges to the store. An omitted field keeps its value. Null is valid only for avatarId and description. An input with no field, or null in another field, fails with VALIDATION_ERROR. A field with its current value changes nothing.
input UpdateMarketplaceInputInput fields
| Field | Type | Description |
|---|---|---|
avatarFileUrl | URL | The new logo: the public URL of a PUBLIC District files image, File.url with access: PUBLIC in District API. Any last path segment is accepted. The store keeps its own copy of the image, so a later change to the file in District files does not change the logo. Not with avatarId: VALIDATION_ERROR. When District files does not answer the check or the copy fails, the mutation fails with error code MEDIA_FILE_CHECK_FAILED and writes nothing; send the same request again. |
avatarId | ID | Null removes the logo: Marketplace.avatar then returns null, and the storefront shows the District icon. Otherwise an image that the caller owns, or the ID of the current logo, which changes nothing. |
description | String | The new store description, at most 2,000 UTF-16 code units, stored as given. Null, an empty string or a string of white space only, of any length, clears it. A longer description fails with VALIDATION_ERROR. |
name | NonEmptyString | The new store name, at most 120 UTF-16 code units, with at least one visible character. Before the checks, the mutation removes white space, format characters such as a zero-width space, and default-ignorable code points from the start and the end of the name. It keeps the run of U+FE0E, U+FE0F and emoji tag characters (U+E0020 to U+E007F) that directly follows the last visible character, and removes every other variation selector at the end. White space, a control, format, private-use or unassigned code point, a combining mark, a default-ignorable code point and the braille blank U+2800 are not visible. A longer name, a name with no visible character, or null fails with VALIDATION_ERROR. |