{"files":{"SKILL.md":"---\nname: azure-sql-database-importexport-spec\ndescription: \"Azure SQL Database Import/Export spec API skill. Use when working with Azure SQL Database Import/Export spec for subscriptions. Covers 3 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Azure SQL Database Import/Export spec\nAPI version: 2014-04-01\n\n## Auth\nOAuth2\n\n## Base URL\nhttps://management.azure.com\n\n## Setup\n1. Configure auth: OAuth2\n2. Verify API access with a test request\n3. POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import -- create first import\n\n## Endpoints\n3 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Subscriptions\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import | Imports a bacpac into a new database. |\n| PUT | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName} | Creates an import operation that imports a bacpac into an existing database. The existing database must be empty. |\n| POST | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export | Exports a database to a bacpac. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a import?\" -> POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import\n- \"Update a extension?\" -> PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}\n- \"Create a export?\" -> POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Azure SQL Database Import/Export spec\n@base https://management.azure.com\n@version 2014-04-01\n@auth OAuth2\n@endpoints 3\n@toc subscriptions(3)\n\n@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import\n@desc Imports a bacpac into a new database.\n@required {serverName: any # The name of the server., parameters: any # The required parameters for importing a Bacpac into a database.}\n@returns(200) OK\n@returns(202) Accepted\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}\n@desc Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.\n@required {serverName: any # The name of the server., databaseName: any # The name of the database to import into, extensionName: any # The name of the operation to perform, parameters: any # The required parameters for importing a Bacpac into a database.}\n@returns(201) OK\n@returns(202) Accepted\n\n@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export\n@desc Exports a database to a bacpac.\n@required {serverName: any # The name of the server., databaseName: any # The name of the database to be exported., parameters: any # The required parameters for exporting a database.}\n@returns(200) OK\n@returns(202) Accepted\n\n@end\n"}}