Dive into the UEX API documentation to grasp its ins and outs. Start building your new application with UEX data

Welcome to UEX

New Babbage, Nov 21, 2954

/user_refineries_jobs_add

Add a new refinery job to the user account

Method POST
URL https://uexcorp.space/api/2.0/user_refineries_jobs_add/
Authorization Bearer Token
Cache TTL
Input (Header) // required user secret key, should be passed via header, obtained in user profile
secret_key string(40)
Input (POST) id_terminal int(11) // required
id_refinery_method int(11) // required
cost float(11) // refining cost in UEC
time_minutes int(11) // e.g. 135 minutes for 2h 15m
refinery_capacity int(11) // optional, current capacity at terminal
items array
items[0][id_commodity] int(11) // required, only raw commodities
items[0][quantity] int(11) // required, quantity refined in units
items[0][yield] int(11) // required, quantity yield in units
items[0][yield_bonus] int(11) // optional, refinery yield bonus
is_production int(1) // required for production
JSON input example
{
    "is_production": 0,
    "id_terminal": 242,
    "id_refinery_method": 2,
    "cost": 5143,
    "time_minutes": 360,
    "refinery_capacity": 1289,
    "items":
    [
        {
            "id_commodity": 48,
            "quantity": 2439,
            "yield": 2282,
            "yield_bonus": 5
        },
        {
            "id_commodity": 47,
            "quantity": 1251,
            "yield": 1024,
            "yield_bonus": -2
        }
    ]
}
Output id_user_refinery_job int(11) // user refinery job unique ID
Responses // user secret key not provided
missing_secret_key

// user not found with provided secret key
user_not_found

// user banned or disabled by administrator
user_not_allowed

// user account not verified on RSI website
user_not_verified

// user secret key length should be exactly 40 characters
invalid_secret_key

// terminal ID not provided
missing_id_terminal

// refining method ID not provided
missing_id_refinery_method

// terminal ID not found
terminal_not_found

// refining job cost not provided
missing_cost

// refining job time provided
missing_time_minutes

// items array input not provided
missing_items

// no items found in items array input
no_items_found

// commodity ID not provided for item line
missing_item_id_commodity

// commodity ID not found for item line
commodity_not_found

// quantity not provided for item line
missing_item_quantity

// yield not provided for item line
missing_item_yield

// refinery method not found
refinery_method_not_found

// all good!
ok
Last update: 6 months ago

Optional Required Required as header input

This website uses third-party cookies for stats, no personal data. We use cookies for preferences (dark mode, trading, mining) and collects trade/refining info (commodities, locations) for public reports. No personal data is collected.