---
id: report-unpublish
title: "Unpublish a report"
description: "Removes the published version reference so the report no longer appears in the published list. Version history is kept."
sidebar_label: "Unpublish a report"
hide_title: true
hide_table_of_contents: true
api: eJztVt9v2zYQ/lcO97QB8o9m9prqLSs2LMW2domzFQiM4SyeLDYSqZJHN56h/30gpfhHkm192l7qF0sUeffdd9/xbodCa4/5LV5xa53Ahp3X1nhcZqjYF063oq3BHK+4sRv2IBVDG1a19hWrh/3guGTHpmDwNm1xvT1jobZmzQ6obZmcB20emai1lzH8NhiqtBfrtqA93HErY8zQtuwoorhUmGNvOA9msIAZtuSoYWEXI9mhjnBbkvjJUMOYo1aYoeOPQTtWmIsLnKEvKm4I8x3Kto27vDht1phhaV1DgjmGoBV2j6lYVAzB6I+BQSs2okvNDmx5FHjEzffUtHU0XJbzVy+nq3I0f3WmRjM6V6PV+fx89M2Ll3MuZrPZ/Nsz7JYZei6C07JNcayYHLuLIBXmt8v42bFvrfHsI+iz6Sz+PYU2UP+JPOxZYjWOcczev3965nWt2Qiwc9bB3gWowCAWtNlQrRVo0wYB66DR3muzhgPrMdjCGmEj0Tq1ba2LlLHJBx9d7I651pI4+T66w+yBe7v6wIWcZOkWvZAE/9oqjnQOBxr2ntYcFdq6qA3RPSFHuw851UZ4zfHcadA/LhbvoD8BhVUM2qgE2qxTGpO3kyzOptMuxnlifi+ZU+sX0FBRacMjx6RoVQ8Ge1dSkUBBwmvr9J9DTZWk6+D4VDgrUn9EQthLTF9PwWd495V1kkEVGjKPIcSzp16+IwVXBy8PBP+7H6V0fKQaFAvp2gOtbJC/IXAQZ/KT1NlQHSuNFSRmjJA2rPaKOxZYl34Zzp8T8KURdhGFZ7dhN8Q56JcMBMP3LRcSbXsf+Itev+j1P9FrAieVjX2rtV5Sr4rXOU76S3qy06qbHPeyXsJ9Iwuuxhwrkdbnkwm1emxCXbc1SYQxLmxz0jSuo2Z7aR23jj0r0RAObS8lK23CbHj44aHpvfl9gRG6NqU9roB+RPCY4dD1Mcfp+MV4+oTon8nQmkFtDTW6GBqSz8FzXY4OxA3rsAq6FiidbYDgzfXbXyCFQhDDzIDg5nJYyYCMgutffxqtqLhjBR8DO81+DAM4qGjDQKAcldILd2sDsNKSjuqmCZLE9WSG8f12H1xJRawvuDReryvxqXXG/DWULodhqLh5SBvQEMpjInaHa+Z/nJ+G9Avfy6StSZsYTtLWbpDjLe7x52lUOihymWEVlZvf4m63Is83ru66uBypj4PKMsMNOR1JTapV2sdnhXlJted/oOSrq+Hu/Bo+c6R6NpRhkcw2SpPqEN8wwzve9qNft+wyrJgUu4Sw/3BRFNzK0ZEnfSAW175+3729XmCGdFpTj2oomX8Wz27X71jYOzZdt4cn8T0i7Lq/APGUB5w=
sidebar_class_name: "post api-method"
info_path: docs/api/reports
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={"Unpublish a report"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/report/{id}/unpublish"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Removes the published version reference so the report no longer appears in the published list. Version history is kept.

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

<ParamsDetails
  parameters={[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The unique identifier of the report.","example":"ff5970bf-592d-4a8d-b858-3175ec444562"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The report was unpublished."},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"title":"Error","type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code indicating the error.","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the failure.","example":"bad_request"},"error":{"type":"string","description":"A short, human-readable error type.","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Internal server error due to an unexpected issue.","content":{"application/json":{"schema":{"title":"Error","type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code indicating the error.","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the failure.","example":"bad_request"},"error":{"type":"string","description":"A short, human-readable error type.","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}}}}
>
  
</StatusCodes>


      