---
id: log-specification-update
title: "Update log specification"
description: "Updates an existing log specification by its ID."
sidebar_label: "Update log specification"
hide_title: true
hide_table_of_contents: true
api: eJzdV99v2zYQ/leIe2oB1XbbZA96S9MOzbCHoHW2Am5gnMWzxZYiVZJK4hn634cjZVuy3R8Itg7YixJLR9533913PG7AU9E4FdaQzzawIHTkLppQQj67bW8zCLjykM/gd7sSvqZCLVWBQVkDtxk8PDON1rXGsLSugnwDha0qNHJusCLIYaztajxc1mYgyRdO1fFnDje1xEBeoBH0oHxQZiX0oTexWAsVvLh6PYIMbE0uvr6SkIO2q/nAOG/ilpBBjQ4rCuR8DE+xvxpDCRl0CJWEDBx9aZQjCXlwDWXgi5Iq5HjCumYrH5wyq2Ps05JEY9SXhsTVa2GXIpR0AnywIkFi8PSAVa0J8pdn578wxeydfHhl5ZpdHoIprAlkAn/CutbdnuNPnhFsjrHaxScqAgfvmKegyMevVHGiuh/JFJ3DNWSgAlX++1sUWONCaRXW8wIDraxbn+SoZ1c7e6ckuZN2W0hdtZywQCnnqQKPsaGUiplAfT0MdLhJy45UYMJ3Dt/XVEDbR3CH7jFOvkKUMnUT5snmRFT7DO8+LqzVhJ06ltjo0PuoTKAVOTgVyh+Y3nvSVATr5pKWyqhUnz8pHtTa3s/vlZYFupNRtX2I/1AytV1xHlP7eJc01Hly5GtrfNrixeSM/wyFe9TOOoFK4ZuiIO+XjdbrEUd39uHD8fpLrcgEQc5ZJ3buhGyIxa7MHWolReRNWCcq5T33tX0/4k7waGXvC2gGPmBo/KWV3O8iHsigIu9xRdyjh5nsWR/X12F3ezudXou0QhRWknBUO/JkYo/mVrelUBR9Pp7QaDXKxNlkwo/n/HjJj7Ong/53Nplwsxhi6TJ9COVCVFiUytAzRyhxoanzFXGFEoPoWpL6i3zCRu6OnFii0o0bdl5YoJy7bclsafsBEAunaJmJsqnQ7JH0rLZnQALH223Z+AivUIquTj8Cv7gx2IQyQpYfYUhO35ohbjP6fZA7JQlJAZX2Ahe2CXtYQz98hHVUiHv0okLNhzlJEdk1AZUhuSvpfgW3bZLb+SmFvE/0HypEGRnr3Kz4wFfeNyT4hCxJXFxfCa8k/c+k4ftEdMVwztI4n7zgx8th4s//O1VwsM6gniejeaLsp+njqnMvutJ5wzZJKfxGFSRuDN6h0rzrkWBOLv9XpXNhRGPooaaCD44Uki2KxjmSI3GtCT2J4NYCV6iM4OPabVXDrD4EMl5Zk4bTz7SG/HCkzuAOdUM/OFrzNFlRKK1Mc25RxhmYp3kYs6Sc5a0N7RaPN0q2wGczc5aANE5DDmUItc/HY6zVqA9pVNjqiLlrZ2VTxASnnYChbK8W71mtSWT9C8YuHewKuqk7dudoBFn3z6/WVRggh9/+nMZZh7vAu/3Q/GabkMGQO/vKvLpP/skxdf/5YDrdf+gNpZHxwyHyq9PYcAbiSJRZ2oi7m2kuU45ETBInn5xPDD8fTUYTruba+lBh7IIdsDQBHV87DrO02XfVx1y6umQFegjjWqOKw2qslU1XYzPo1xhkPKJxXnnaziBXkptuaX1g081mgZ5unG5bfv2lIc7O7JYr3ilWeMyhVJ7/l5AvUXv6RkhP3nWt/6l4zLXsZHjbe5JZ75UIkHVaVRLa2zaDkjDWzk7ElwnUsykv3y88OsnabLvioiioDt+07Wv7+mJ6+ZYF0t0Zq3hcgMN7PgLxPqG0kaWou/huAxrNqom9ENKmXIQ4VOOB+mJYJ3nYbJLF1H4m07Y7WgL/Zmba9m+9JLoR
sidebar_class_name: "patch api-method"
info_path: docs/api/control-plane
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={"Update log specification"}
>
</Heading>

<MethodEndpoint
  method={"patch"}
  path={"/controlplane/log/spec/{id}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Updates an existing log specification by its ID.

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

<ParamsDetails
  parameters={[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The unique ID of the log specification to update.","example":3456}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"capability_category":{"type":"string"},"capability_provider":{"type":"string"},"template_name":{"type":"string"},"add_tags":{"type":"object","additionalProperties":{"type":"string"}}},"title":"templateSpec"}},"template_vars":{"type":"object","additionalProperties":{"type":"object","properties":{"input_type":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"integer"}},"title":"templateVar"}},"selector_definition":{"type":"object","additionalProperties":{"type":"object","properties":{"input_type":{"type":"string"},"allow_wildcard":{"type":"boolean"}}}},"selector":{"type":"object","additionalProperties":{"type":"string"}}},"title":"logSpecUpdateRequest"}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"Log specification updated successfully."},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      