Home > @poq/sdk-sfcc > IContentClient > getContentByID
To access a content asset, you construct a URL using the template shown below. This template requires you to specify a content asset id. In response, the server returns a corresponding content asset document. Only content assets, which are marked as online are returned. An assignment to a folder is not necessary.
Signature:
getContentByID(id: string, locale?: string, options?: RequestOptions): Promise<PoqResponse<Content>>;
Parameter | Type | Description |
---|---|---|
id | string | The id of the requested content asset. |
locale | string | (Optional) |
options | RequestOptions | (Optional) Override http request option. |
Returns:
Promise<PoqResponse<Content>>