ShineServer_English version


2.3 Delete power station

<p><strong>A brief description:</strong> </p> <ul> <li>Delete the interface of the power station</li> </ul> <p><strong>Request URL: </strong></p> <ul> <li><code>http(s)://test.growatt.com/v1/plant/delete</code>    <strong>Call example</strong></li> </ul> <table> <thead> <tr> <th style="text-align: left;">Parameter name</th> <th style="text-align: left;">Is it required</th> <th style="text-align: left;">Value</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">plant_id</td> <td style="text-align: left;">Yes</td> <td style="text-align: left;">77</td> <td>Plant ID</td> </tr> </tbody> </table> <pre><code>{ &amp;quot;plant_id&amp;quot;: &amp;quot;77&amp;quot;, }</code></pre> <p><strong>Return to Example</strong></p> <pre><code>{ &amp;quot;data&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;error_code&amp;quot;: 0, &amp;quot;error_msg&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <p><strong>Return parameter description</strong></p> <table> <thead> <tr> <th style="text-align: left;">Parameter name</th> <th style="text-align: left;">Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">error_code</td> <td style="text-align: left;">int</td> <td>error code</td> </tr> <tr> <td style="text-align: left;">error_msg</td> <td style="text-align: left;">string</td> <td>Error message prompt</td> </tr> </tbody> </table> <table> <thead> <tr> <th style="text-align: left;">error_code</th> <th style="text-align: left;">error_msg</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">0</td> <td style="text-align: left;">Return normally</td> </tr> </tbody> </table> <pre><code>{ &amp;quot;data&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;error_code&amp;quot;: 0, &amp;quot;error_msg&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <table> <thead> <tr> <th style="text-align: left;">error_code</th> <th style="text-align: left;">error_msg</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">10001</td> <td style="text-align: left;">System error</td> </tr> </tbody> </table> <pre><code>{ &amp;quot;error_msg&amp;quot;: &amp;quot;error_system error&amp;quot;, &amp;quot;data&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;error_code&amp;quot;: 10001 }</code></pre> <table> <thead> <tr> <th style="text-align: left;">error_code</th> <th style="text-align: left;">error_msg</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">10002</td> <td style="text-align: left;">The power plant ID is empty</td> </tr> </tbody> </table> <pre><code>{ &amp;quot;error_msg&amp;quot;: &amp;quot;error_plant ID is empty&amp;quot;, &amp;quot;data&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;error_code&amp;quot;: 10002 }</code></pre> <table> <thead> <tr> <th style="text-align: left;">error_code</th> <th>error_msg</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">10004</td> <td>The power station does not exist</td> </tr> </tbody> </table> <pre><code>{ &amp;quot;error_msg&amp;quot;: &amp;quot;error_plant does not exist&amp;quot;, &amp;quot;data&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;error_code&amp;quot;: 10004 }</code></pre> <p><strong>Remark</strong></p>

页面列表

ITEM_HTML