> ## Documentation Index > Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt > Use this file to discover all available pages before exploring further. # Path API reference for the Path type. A path that defines the structure of a shape element. ## Properties The shape of the path. This is similar to the `d` attribute of an SVG's `path` element, with some limitations: * Must start with an `M` command. * Only one `M` command is allowed. * `Q` and `T` commands are not permitted. * The path must be closed using a `Z` command or matching start and end coordinates. The appearance of the path's interior. The only valid value is `true`. A media fill, if any. Properties of mediaContainer}> **Parameters** A state that creates an image fill. The type of media. The only valid value is `"image"`. A unique identifier that points to an image asset in Canva's backend. If `true`, the image is flipped horizontally. If `true`, the image is flipped vertically. A state that creates a video fill. The type of media. The only valid value is `"video"`. A unique identifier that points to a video asset in Canva's backend. If `true`, the video is flipped horizontally. If `true`, the video is flipped vertically. **Returns** `void` An image that fills the interior of a media. The type of media. The only valid value is `"image"`. A unique identifier that points to an image asset in Canva's backend. If `true`, the image is flipped horizontally. If `true`, the image is flipped vertically. A video that fills the interior of a media. The type of media. The only valid value is `"video"`. A unique identifier that points to a video asset in Canva's backend. If `true`, the video is flipped horizontally. If `true`, the video is flipped vertically. A color fill, if any. Properties of colorContainer}> **Parameters** Properties of state}> The type of color. The only valid value is `"solid"`. The color of the fill. This must be a valid, six-digit hex code, prefixed with a `#` symbol. * Must be six characters long. * Must start with a `#`. * Must use lowercase letters. **Example** ```ts "#ff0099" ``` **Returns** `void` A solid color that fills an interior. The type of color. The only valid value is `"solid"`. The color of the fill. This must be a valid, six-digit hex code, prefixed with a `#` symbol. * Must be six characters long. * Must start with a `#`. * Must use lowercase letters. **Example** ```ts "#ff0099" ``` Represents design content that the SDK doesn't support. The only valid value is `"unsupported"`. The only valid value is `false`. A media fill, if any. MediaFill is not editable Properties of mediaContainer}> An image that fills the interior of a media. The type of media. The only valid value is `"image"`. A unique identifier that points to an image asset in Canva's backend. If `true`, the image is flipped horizontally. If `true`, the image is flipped vertically. A video that fills the interior of a media. The type of media. The only valid value is `"video"`. A unique identifier that points to a video asset in Canva's backend. If `true`, the video is flipped horizontally. If `true`, the video is flipped vertically. A color fill, if any. Properties of colorContainer}> **Parameters** Properties of state}> The type of color. The only valid value is `"solid"`. The color of the fill. This must be a valid, six-digit hex code, prefixed with a `#` symbol. * Must be six characters long. * Must start with a `#`. * Must use lowercase letters. **Example** ```ts "#ff0099" ``` **Returns** `void` A solid color that fills an interior. The type of color. The only valid value is `"solid"`. The color of the fill. This must be a valid, six-digit hex code, prefixed with a `#` symbol. * Must be six characters long. * Must start with a `#`. * Must use lowercase letters. **Example** ```ts "#ff0099" ``` Represents design content that the SDK doesn't support. The only valid value is `"unsupported"`. The stroke (outline) of the path, if any. For more information, see [Stroke](/docs/apps/api/latest/design-types-stroke/).