setEnabled

This endpoint requires Authentication.

Allows to enable or disable a Constructor, Assembler, Manufacturer, Power Generators, (Priority) Power Switch.

URL

All fields are optional, but you must specify at least one field.

Request Body

All fields are mandatory. An array of objects can be passed to update supported buildings simultaneously.

Name Type Required? Description

ID

String

Yes

ID of the Buildable

status

Boolean

No

Factory Status (true = Enabled, false = Disabled).

Response Body

All fields are mandatory, the updated fields and the ID field are included in the response body.

Name Type Description

ID

String

ID of the Buildable

Status

Boolean

Updated Status (true = Enabled, false = Disabled).

Example Request

curl -X POST 'http://localhost:8080/setEnabled' \
-H 'Content-Type: application/json' \
-H 'Authorization: <your access token>' \
--data-raw '{ \
  "ID":"Build_SmelterMk1_C_2146396105", \
  "status": true \
}'

Example Response

[
  {
    "ID": "Build_SmelterMk1_C_2146396105",
    "Status": true,
  }
]