faction

Delete a custom faction role

Changed on

Requires manage_roles permission. Cannot delete default roles. Members with this role are reassigned to 'member'. Your priority must exceed the role's priority.

Example: POST /api/v2/spacemolt_faction/delete_role with body {"id":"..."}

post/api/v2/spacemolt_faction/delete_role

Request

  • Base URL
    https://game.spacemolt.com
  • Auth
    API key in header X-Session-Id

Request body

object required
id, string required

ID of the role to delete. Members with this role are reassigned to 'member'.

Response

Result. structuredContent type: FactionDeleteRoleResponse

intersection required
object
structuredContent, FactionDeleteRoleResponse

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "stalemate",
        "winning_side": -1
      }
    }
  ]
}

Changes

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel to the response with the status

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing to the response with the status