---
id: attach-asset
title: "Attach asset"
description: "Attach a new asset to a bookmark"
sidebar_label: "Attach asset"
hide_title: true
hide_table_of_contents: true
api: eJztVcFu4zYQ/RVhTl2AjZJiiy508y5aNL002LjowdBhLI4txhKpJanYrsB/L2Ykx/LGG+yhx14EafQ4nPf4ZjiAplB500XjLBSwiBGrOsPM0j7DEChm0WWYrZ3bteh3oCDiNkCxgo9TKECpIFDVexOPUKwGWBN68os+1lCsylQq6NBjS5F8EECoamoRigHisSMoIERv7BYU0AHbruGQIaObw3Hb7p8+/OIO//xcH2J01QeuwESBnCq415AUePrSG08aiuh7UmCxZdD6DFJgmGOHsQauildQiB+dPnItl0osa5oJILKAgsrZSDYyHLuuMRUyPH8KvOYKMbd+oiqCgs67jnw0FPiv0a/JJwWy31KiV6Sxfcu6h8oT2VA7TisrHueRNVpL/r7FLYGCTd80D7ilha9q88yRZ6PJMW7SZcEZpECqPO4b0mdsb3fW7S2U6ULfFdc/r7ZMaUSEztkwUvzp9u4booqWpEd1/9f0bU3f375/LePJ+Jl1Mdu43ur/TsbK6StSJQUthcACvP73FRHJcMYLEVkfa6e5/1yQbbkNC8hPooV8OPdqykWJADxa/PNpcPS+gQIG1NpTCCnHzuTPd3wC6A2um5HC9HvUbYN9E6GAOsYuFHke/fGmdug1+RvsOlDXLDomyNwmizVlEzwbK4GU0mziPbKu477zufciEu/LLATG80hAbBZ5+c35Frm+P/5eipJ8Xp/Pg+nX00AcDX627szXc/smHnIbx3hWbeR0d3N7czsbnL9PhBYP91f5Lx7us43zQv6EZa2SksNrURw1DdjTlTF5/iLbcHbld10tI51Ih5h3DRrLO8qZD5NdVi89xtYoLob75JhSQc0OK1YwDGsM9JdvUuLwl54831Dl2S/iKm0Cv2soNtgEeoPDD58nn7/LvlXuFER7FFs2PX+Bgh0dL2+jVCYFNaEmL1WMgE/jXj/KyZ4TvOropE4rFlVFXXwTW8667+HPx6WMqvHSa6XdweMelDylWCfcxdQSG6BBu+2l/WHMyV7FS6t/ZW1hdVWOYRgRS7cjm9KLOpG/WZiU/gXqgvfh
sidebar_class_name: "post api-method"
info_path: API/hoarder-api
custom_edit_url: null
hide_send_button: true
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Attach asset"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/bookmarks/{bookmarkId}/assets"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Attach a new asset to a bookmark

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"schema":{"type":"string","example":"ieidlxygmwj87oxz5hxttoc8","title":"BookmarkId"},"required":true,"name":"bookmarkId","in":"path"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"description":"The asset to attach","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"assetType":{"type":"string","enum":["screenshot","assetScreenshot","bannerImage","fullPageArchive","video","bookmarkAsset","precrawledArchive","unknown"]}},"required":["id","assetType"]}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"201":{"description":"The attached asset","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"assetType":{"type":"string","enum":["screenshot","assetScreenshot","bannerImage","fullPageArchive","video","bookmarkAsset","precrawledArchive","unknown"]}},"required":["id","assetType"]}}}},"404":{"description":"Bookmark not found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}}}}}}
>
  
</StatusCodes>


      