diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-04-13 16:25:03 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-04-13 16:25:03 +0000 |
| commit | f3c525b7f7dd360f654d8621bbf64e31ad5ff48e (patch) | |
| tree | f9c8378e5c24caf1441f055d0d08b60f8b91a0ab /docs/versioned_docs/version-v0.23.1/API/replace-asset.api.mdx | |
| parent | ae76f9464f2f64018548f4ddfe7b94b92616c6dd (diff) | |
| download | karakeep-f3c525b7f7dd360f654d8621bbf64e31ad5ff48e.tar.zst | |
docs: Revert 0.23.2 docs and just update 0.23.1 instead
Diffstat (limited to 'docs/versioned_docs/version-v0.23.1/API/replace-asset.api.mdx')
| -rw-r--r-- | docs/versioned_docs/version-v0.23.1/API/replace-asset.api.mdx | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/docs/versioned_docs/version-v0.23.1/API/replace-asset.api.mdx b/docs/versioned_docs/version-v0.23.1/API/replace-asset.api.mdx new file mode 100644 index 00000000..47cfe5f6 --- /dev/null +++ b/docs/versioned_docs/version-v0.23.1/API/replace-asset.api.mdx @@ -0,0 +1,72 @@ +--- +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> + + +
\ No newline at end of file |
