---
id: format-sql-code
title: 'Format SQL code'
description: 'Format SQL code'
sidebar_label: 'Format SQL code'
hide_title: true
hide_table_of_contents: true
api: eJzFV21v2zYQ/ivEYUATTImTvQAFi35IgxZtFzRp7WAboiClpYvFhiIVknLiCfrvw5GyrPhlwNIP/WSLOh7vee6546kBi/c1Ov/G5AvgDWRGe9Se/oqqUjITXho9+uaMpjWXFVgK+ldZU6H1Eh095cKLqXB4I/PwiC6zsqKtwGFSIFsaMJlDArpWSkwVAve2xgT8okLgILXHGVpoE0A9kxrJ1w5b563UMzJ194rsNtY9lpUSHm8qYUXptsc1/nzG7mu0C7Y0Z9GcCcc+js8/sc7hzqCXB7ZJ4FJazIFfhaiueyMz/YaZhwS89OQB3hlbCv+ZTr4QC2VEPo7UEvZHUVYKN3g9XtECfVQB/epxA/QqvjZZw99jh2HoBC5gcZXRLqb3l6Oj7xCHRVcrvyVH7To/T8Ev9/0HhEhjyGJn3Sbw23dFW6JzYob/P9x+I7wROevqirMPei6UzKOs0KN1rLJmLnPMtyEa7I1Yjn8slkstal8YK//BnLOT2heofXc+61WzBchwY0Ty649F8s7Yqcxz1Jz9bWqWG/3Cs0LMkVVoS+kcIfKGiSxD55gvpCNRmdpmuEN70R+d+PuP1twH7dFqoZhDO0fL0FpjOTvRrNb4WGHmMY+LzGRZbXdk7Z3wQkW7cLjDrLbSL4BfNfDtwQO/um6pr4mZozZHlXcmptTqHg8yk+M4xOaCvRJ6Bhyyyy9nkIASU1Srx45YDlltFTv4i12cjycshcL7io9GymRCFcZ5/vLo5cuRqORofjxy99SDR7eh7G/cvRqlwNI01YwdvGcpnHSSC7Rz9gaFRct+Ojk9fTse30zO/3j76emG05iwg8miQs7Wc7ayzdmLJoU7XKTAWQpzoWpMoX0BbdLjvFj4wugB0n6hxyrLyli/LHCX6lQvGy173S8fVsb5PTqXPYeQJO4sUORo3etmjZaIoKMmBfZzp/gbb+5Qt91ugv96G+RU76e6slL7vWXoh2S8t78/JOOjmItxENaAkCeLKwEY7YiTngfxIKRnt+izIrDwXA6aCKVEX5icMJDE1vnhSzO2rh/C/XUpoSaSNAkcfU1WW4YKikxtqihaL6mdmnzBw3BxGMtc3i72GnaHiwHPrN0na6L7VaojRTQN9PSskd8ZGYWHysz2yHT/FVCp7rwxqVwhgUgPcCDVQQKV8AVw2M0u5S40mVjltaXUbs0QrJ9+Rq9ZjnNUpipR+65dBeVER01ljTeZUS0fjRpy1fKGqqbd8HZaO2/KpYsE5sJKmtBc12GDmzj33Yo4SlCYQHNUXVL76h7px8EGV+8nkwvW+2kToGie+uvxbgQ3jn2Y3mlRIjOWfbggJ4TlqZOtVHX7g3XbUiKXvThMihFk6MgNTINIY2qpzP6cUI6CGfDuLfQ3SQDdJrT5xuKtRVc81wl5cUZ/WX1EvN0xvB591/CagNS3ZnOEH9cVWofDyXqwRBKNdvPjyLzzpQg3MaVkazU88d9fxx4f/ahSQobLPgi16QrlCkQl6bDjCEiJKSSwKhdIgJQVpXMFTUOUXFrVtrQc529+db1Sb7hiE4jtKVTYHS5I7YNGE8SuagptY86gUoo7TrIMQ6vdbXs9qH/qjpDAtPsULIkQDlY80PeBeAAOkIAJ1MS5ntZiw6/jEBJ9kipo9hvw16un+0OouldCLwYRNk20iH2WSj5CCXcTtNdt2/4LyisNlQ==
sidebar_class_name: 'post api-method'
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: 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';
import Translate from '@docusaurus/Translate';

<Heading
  as={'h1'}
  className={'openapi__heading'}
  children={'Format SQL code'}
></Heading>

<MethodEndpoint
  method={"post"}
  path={"/api/v1/sqllab/format_sql/"}
  context={"endpoint"}
>

</MethodEndpoint>

Format SQL code

<Heading id={'request'} as={'h2'} className={'openapi-tabs__heading'}>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails>

</ParamsDetails>

<RequestSchema
  {...require("./format-sql-code.RequestSchema.json")}
>

</RequestSchema>

<StatusCodes
  {...require("./format-sql-code.StatusCodes.json")}
>

</StatusCodes>
