# Upload the page's avatar or background image (multipart, "file" field, ≤5MB)

multipart/form-data upload to R2 (image/png, image/jpeg, image/webp, or image/gif). Sets theme.avatarUrl or theme.bgImageUrl depending on kind. If that field was already set, the previously-uploaded image is deleted from storage — replacing an image never leaves an orphaned object behind. 400 when kind is invalid, the file is missing, or the content type isn't one of the allowed image types; 413 when the file is larger than 5MB; 503 when image storage isn't configured for this environment.

Canonical: https://easerix.com/docs/developers/api/links/bio/uploadBioMedia

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="links" operations={[{"path":"/v1/bio/{id}/media/{kind}","method":"post"}]} />
    </>
  );
}
