Back to Content Management API
faviconUploadUrl
Returns the favicon upload URL.
Arguments
- Name
id- Type
- String!
- Description
The ID of the site settings object.
Returns
- Name
String- Type
- String!
- Description
The favicon upload URL.
Request
import { PackClient } from '@pack/client'
const packClient = new PackClient({
token: 'YOUR-PACK-TOKEN'
});
const query = `
query FaviconUploadUrl($id: String!) {
faviconUploadUrl(id: $id)
}
`;
const variables = {
id: 'YOUR-SITE-SETTINGS-ID'
};
const response = await packClient.fetch(query, { variables: variables });
console.log(response.data);
Response
{
"data": {
"faviconUploadUrl": "https://YOUR-BUCKET.s3.amazonaws.com/storefront-direct-upload/YOUR-SITE-SETTINGS-ID/favicon.png?X-Amz-Signature=..."
}
}