<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
        SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
       title="Force enable MACHINE relay and mark lane as in-wash (superusers only)" id="forceEnableSelfServeLaneMachine">

    <!-- AUTO-GENERATED, DO NOT EDIT -->
    <p>This endpoint documentation is generated directly from <code>openapi.yaml</code>.</p>
    <chapter title="Endpoint" id="endpoint">
        <code-block lang="http">POST /modules/self-serve/lane/force/machine/enable</code-block>
    </chapter>
    <chapter title="Operation" id="operation">
        <p>Operation ID: <code>forceEnableSelfServeLaneMachine</code></p>
        <p>Superuser/emergency endpoint. Bypasses the allowed services gating and directly turns on the MACHINE relay.
Also ensures the lane is marked as OCCUPIED and IN_WASH with a wash start timestamp if not already set.
</p>
    </chapter>
    <chapter title="Authentication" id="authentication">
        <p>Security requirements:</p>
        <table>
            <tr><td>Scheme</td><td>Scopes</td></tr>
            <tr><td>BearerAuth</td><td>-</td></tr>
        </table>
    </chapter>
    <chapter title="Request Body" id="request-body">
        <p>Required: yes.</p>
        <p>Content type: <code>application/json</code></p>
        <code-block lang="json">
{
  &quot;properties&quot;: {
    &quot;duration&quot;: {
      &quot;description&quot;: &quot;Optional number of seconds after which the relay should automatically turn off&quot;,
      &quot;nullable&quot;: true,
      &quot;type&quot;: &quot;integer&quot;
    },
    &quot;lane_id&quot;: {
      &quot;type&quot;: &quot;integer&quot;
    },
    &quot;license_plate&quot;: {
      &quot;description&quot;: &quot;Optional license plate to associate with the lane&quot;,
      &quot;nullable&quot;: true,
      &quot;type&quot;: &quot;string&quot;
    }
  },
  &quot;required&quot;: [
    &quot;lane_id&quot;
  ],
  &quot;type&quot;: &quot;object&quot;
}
        </code-block>
    </chapter>
    <chapter title="Responses" id="responses">
        <table>
            <tr><td>Status</td><td>Description</td><td>Content Types</td></tr>
            <tr><td>200</td><td>MACHINE relay force-enabled and lane marked in-wash</td><td>application/json</td></tr>
            <tr><td>401</td><td></td><td></td></tr>
            <tr><td>403</td><td></td><td></td></tr>
        </table>
        <p>Schema for response <code>200</code> (<code>application/json</code>):</p>
        <code-block lang="json">
{
  &quot;properties&quot;: {
    &quot;duration&quot;: {
      &quot;nullable&quot;: true,
      &quot;type&quot;: &quot;integer&quot;
    },
    &quot;forced&quot;: {
      &quot;type&quot;: &quot;boolean&quot;
    },
    &quot;lane_id&quot;: {
      &quot;type&quot;: &quot;integer&quot;
    },
    &quot;machine&quot;: {
      &quot;enum&quot;: [
        &quot;ENABLED&quot;
      ],
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;state&quot;: {
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;status&quot;: {
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;wash_start_time&quot;: {
      &quot;type&quot;: &quot;integer&quot;
    }
  },
  &quot;type&quot;: &quot;object&quot;
}
        </code-block>
    </chapter>
</topic>
