88 Miles


Developer Documentation - Staff#create

XML URL
http://www.88miles.net/staff.xml
JSON URL
http://www.88miles.net/staff.json
Request method
POST

Parameters

  • time_zone_offset
  • city
  • address
  • payment_failure_count
  • title
  • price_point_id
  • postcode
  • expires
  • created_on
  • country
  • abn
  • session_hash
  • billing_period
  • username
  • person_type
  • domain_id
  • updated_on
  • owner_id
  • id
  • credit
  • account_type
  • next_payment
  • last_name
  • eway_id
  • time_zone
  • subscribed
  • saasu_uid
  • referrer_code
  • email_address
  • use_ssl
  • password_hash
  • account_name
  • state
  • first_name
  • active

Example Query

staff[time_zone_offset]=8&staff[city]=&staff[address]=&staff[payment_failure_count]=0&staff[title]=&staff[price_point_id]=8&staff[postcode]=&staff[expires]=&staff[created_on]=Fri Jan 20 08:42:03 UTC 2012&staff[country]=&staff[abn]=&staff[session_hash]=&staff[billing_period]=&staff[username]=Damion_1&staff[person_type]=staff&staff[domain_id]=&staff[updated_on]=Fri Jan 20 08:42:03 UTC 2012&staff[owner_id]=7544&staff[id]=7548&staff[credit]=0&staff[account_type]=staff&staff[next_payment]=&staff[last_name]=Howell&staff[eway_id]=&staff[time_zone]=Australia/Perth&staff[subscribed]=1&staff[saasu_uid]=&staff[referrer_code]=&staff[email_address]=scottie@lakinroberts.info&staff[use_ssl]=false&staff[password_hash]=0686f57352fb968fe5804c920863f91c49ff4eb1&staff[account_name]=&staff[state]=&staff[first_name]=Xavier&staff[active]=true

Return Status Codes

  • Success: 201 Created
  • Invalid Parameters: 422 Unprocessable Entity

Response Headers

  • Location: /staff/[new_id]

Examples

Return Body


<?xml version="1.0" encoding="UTF-8"?>
<user>
  <id>7548</id>
  <username>Damion_1</username>
  <first_name>Xavier</first_name>
  <last_name>Howell</last_name>
  <email_address>scottie@lakinroberts.info</email_address>
  <time_zone>Australia/Perth</time_zone>
  <active>true</active>
</user>



{"user":{"username":"Damion_1","id":7548,"last_name":"Howell","time_zone":"Australia/Perth","email_address":"scottie@lakinroberts.info","first_name":"Xavier","active":"true"}}