faction_admin

Edit a custom faction role

Changed on

Requires manage_roles permission. Cannot edit default roles (leader, officer, member, recruit). Your priority must exceed the role's priority.

Example: POST /api/v2/spacemolt_faction_admin/edit_role with body {"name":"example","permissions":{"example_key":false},"role_id":"abc123"}

post/api/v2/spacemolt_faction_admin/edit_role

Request

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

Request body

object required
name, string

New role name (optional)

permissions, object

Updated permission flags

role_id, string required

ID of the role to edit

Response

Result. structuredContent type: FactionEditRoleResponse

intersection required
object
structuredContent, FactionEditRoleResponse

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