mirror of
https://github.com/karakeep-app/karakeep.git
synced 2026-12-02 19:14:32 +01:00
72 lines
2.9 KiB
Plaintext
72 lines
2.9 KiB
Plaintext
---
|
|
id: replace-asset
|
|
title: "Replace asset"
|
|
description: "Replace an existing asset with a new one"
|
|
sidebar_label: "Replace asset"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJy9VF1v2zoM/SsCn+4Are6GDXfwWzZsWPcwFF2G+xDkgbGZWK1taRLdJjP03y8o2/loswIDhr0EjnRIHR7ysIeSQuGNY2NbyOGGXI0FKWwVbU1g024UhkCsHgxXClVLD8q2BBoYNwHyBby39q5BfxdgqSFQ0XnDO8gXPawIPflZxxXki2VcanDosSEmHxIgFBU1CHkPvHMEOQT2pt2ABtpi42o5MmTKervbNA+37/61259vqy2zLd4JA8MJMjG4KiFq8PSjM55KyNl3pKHFRkCrA0iDkVodcgVR/zEaM9HpWQ44Ik4ILAc4BX5vy52wOG3JvKKk+tAGtsqPPZKOgIbCtkwtSyA6V5sCJTC7DRJ9pji7uqWCQYPz1pFnQyHFjtyeqBBP6lnsgcsYh6vgbBuGJK8v3zwt4KtVI0f1chomDFMZpQpdUVAI666udyLem3NJph6r1rJa264t/1zphS3pTN0aGgoBN+fuHmmSMhzwSZoUz5UtpdNdelX6nUM2jWLI+sNUxixJE7J+FDiC2MnfT2bpfA059FiWnkKIGTqT3b8CDffoDa7qsY3D9SDgGruaIYeK2YU8y9jvLiqLviR/gc6BPjNqYwJl14orUiNcDUwgxnjk8m8i8PDusdf3asm7UkWCiQcTCPT48cn6BoXfl//mSVJp3M3BCx8n9x1N51F3TLu2cicKDfxfXVxeXB458vNIfnZ9dbbW2fWVWlufCp2wokvU4GzgBtMYjebdr0ah8jhdf5jF39qhg05MW85cjaaVp1Oj+3FaFvvFFUBDfrLFhoGR470nNVQ2sIT1/QoDffd1jHL8oyMvW3l5mJc0VaUJ8l1CvsY60DNl/XMzDvwL9Svm4yG2uzSWdSf/QMMd7U43sGzdv/jyJE9cRg0VYUk+FT/cfhgeejmXHIfoJxtFSA8Rs6Igx89il0fuv/4+l5kft3uTtg14fACdfhNRm+pOVkpnPdTYbrq0fWBIKQ7BU4M9MlQq6qwUfT8g5vaO2hj3yrD8F11i/B/x1cPF
|
|
sidebar_class_name: "put 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={"Replace asset"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"put"}
|
|
path={"/bookmarks/{bookmarkId}/assets/{assetId}"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Replace an existing asset with a new one
|
|
|
|
<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"},{"schema":{"type":"string","example":"ieidlxygmwj87oxz5hxttoc8","title":"AssetId"},"required":true,"name":"assetId","in":"path"}]}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
title={"Body"}
|
|
body={{"description":"The new asset to replace with","content":{"application/json":{"schema":{"type":"object","properties":{"assetId":{"type":"string"}},"required":["assetId"]}}}}}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
id={undefined}
|
|
label={undefined}
|
|
responses={{"204":{"description":"No content - asset was replaced successfully"},"404":{"description":"Bookmark not found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}}}}}}
|
|
>
|
|
|
|
</StatusCodes>
|
|
|
|
|
|
|