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

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

Example Query

staff[price_point_id]=8&staff[created_on]=Wed Jun 02 00:15:15 UTC 2010&staff[city]=&staff[account_name]=&staff[session_hash]=&staff[postcode]=&staff[expires]=&staff[abn]=&staff[updated_on]=Wed Jun 02 00:15:15 UTC 2010&staff[username]=Emily_1&staff[person_type]=staff&staff[domain_id]=&staff[country]=&staff[id]=5260&staff[billing_period]=&staff[account_type]=staff&staff[saasu_uid]=&staff[referrer_code]=&staff[password_hash]=0686f57352fb968fe5804c920863f91c49ff4eb1&staff[owner_id]=5256&staff[time_zone]=Australia/Perth&staff[subscribed]=1&staff[first_name]=Eudora&staff[use_ssl]=false&staff[time_zone_offset]=8&staff[last_name]=Abshire&staff[eway_id]=&staff[address]=&staff[state]=&staff[email_address]=scottie@lakinroberts.info&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>5260</id>
  <username>Emily_1</username>
  <first_name>Eudora</first_name>
  <last_name>Abshire</last_name>
  <email_address>scottie@lakinroberts.info</email_address>
  <active>true</active>
</user>



{"user":{"username":"Emily_1","id":5260,"first_name":"Eudora","last_name":"Abshire","email_address":"scottie@lakinroberts.info","active":"true"}}