---
id: upload-a-new-asset
title: "Upload a new asset"
description: "Upload a new asset"
sidebar_label: "Upload a new asset"
hide_title: true
hide_table_of_contents: true
api: eJyNVE1v2zAM/SsGz26c7uhbtqFANmAr0BQ7BDnQNl2rsS1VotNlhv77QMlNnDYD5pMsfj3yPXGEilxplWGle8jh0bQaqwSTnl4TdI4YUmB8cpBvYSX/DnYpOCoHq/gI+XaEgtCSXQ3cQL7d+V0Kll4GcvxZV0fIx3clNg0lFTImrJPSEjIl3FAslrwqbhaQQql7pp4luhtaVgYtZ7W23Y2EyrUrG+rCiY+GIAddPFMpcI3VhiwrcmKtVUvBS7Ec4E61JKULSobQLFXgwye4ndG9i4GflsuP4L8So2pdgoUeOOCOLVSnYc2QozGtKlFCs2cn8f8PO6RbVzNHx1b1T+BPJTbh/ordqT9zQz90BVkxyCx+YHctykfWlKVKqH4rf1lsSj1LtEtPgw3qgGmSHXGjK8jBaBeaQ1EHZBglJAqyB7IuCGiwLeQwYlVZcs5naFR2uIUUDmgVFu00kWiOnNQ4tAw5NMzG5VnG9rjYo8U9kVmgMZBeUd2UIdF1YO775J9ELAJ9Ju0HISpWngv8NDipLH0EN8gnJ0inw522HQrCb782Ybqqr7WES9cR0u1iuVjCeYAnPKv79VX8q/t1Umt7CV6a9WmYc4dBYn1g+PpTvkg6nsX6j4cfW2X6zZlpUfVSKbA1ToxOSglLoRGq8y2MY4GOHm3rvVy/DGRlUezOfIY9kUJDWJENEtjTEXL4EuHcTGI7YDtI/WsbwKdvQauyJMMz9w/PTmg9CfL+58NGWJp2U6criZHEIW96PkaQeEn7O5oD+MmE/XGGYhyjx0bvqfce0gkuyz/4nff+L1YD4pc=
sidebar_class_name: "post api-method"
info_path: API/karakeep-api
custom_edit_url: null
---

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={"Upload a new asset"}
>
</Heading>

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



Upload a new asset

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

<ParamsDetails
  parameters={undefined}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"description":"The data to create the asset with.","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"title":"File to be uploaded"}}}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"Details about the created asset","content":{"application/json":{"schema":{"type":"object","properties":{"assetId":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"number"},"fileName":{"type":"string"}},"required":["assetId","contentType","size","fileName"],"title":"Asset"}}}}}}
>
  
</StatusCodes>


      