Skip to content

postResource

Paul Willworth edited this page Jan 2, 2019 · 3 revisions

POST postResource

Path /postResource.py

Description

Add, Edit, or Verify a resource spawn

Request Parameters

  • gh_sid: Session token value provided by authentication utilizing authUser.py.
  • galaxy: This is the numeric galaxy ID for the target server. This can be found by clicking on a specific resource located on the target server example: http://www.galaxyharvester.net/resource.py/ 14 /kaipi.
  • planet: The planet the resource inhabits. A list of valid entries can be found in the planet.csv seed data here.
  • resID: Numeric resource spawn ID. This is not required but can be utilized instead of resName.
  • resName: Resource spawn name. This is not required but can be utilized instead of resID.
  • resType: Name of resource type. Example: "aluminum_agrinium". If your data is coming from the core3 .lua file, the type header is a valid entry. Valid entries can be located in seed data here.
  • forceOp: Can be set to (edit or verify) to indicate post is to edit or verify an existing resource. for adds, you can just pass "add" via this field.
  • CR: Cold Resistance stat value of this resource
  • CD: Conductivity stat value of this resource
  • DR: Decay Resistance stat value of this resource
  • FL: Flavor stat value of this resource
  • HR: Heat Resistance stat value of this resource
  • MA: Malleability stat value of this resource
  • PE: Potential Energy stat value of this resource
  • OQ: Overall Quality stat value of this resource
  • SR: Shock Resistance stat value of this resource
  • UT: Unit Toughness stat value of this resource
  • ER: Entangle Resistance stat value of this resource

Response (xml)

  • result
    • spawnName: Name of resource spawn
    • resultText: outcome of post, can be list of actions performed or some error
Clone this wiki locally