API Function - Set User Parts

Back to API list

Use this service to set the list of loose parts saved in the specified user's My Parts list. It will first delete any existing parts, so you should always pass in the complete list. If any parts cannot be found in the database, they will be silently ignored. The usual translation of part IDs will occur as per any parts import process (e.g. Bricklink part numbers converted to LDraw where they are different). It will return the number of parts that were successfully recognised.

URL /api/set_user_parts
Method POST
Parameters key - API Key
format - How to display output data. Valid values: xml, json, csv, tsv
callback - Optional JSONP callback function name
email - The user's logon email.
pass - The user's password.
hash - User Hash Key, alternate to providing email+pass.
parts - The list of parts to be added: PART COLOR QTY, PART COLOR QTY, etc
partlist_id - Optional Part List ID, default is to use the first list.

Output data with fields:

  • SUCCESS [int parts added] - Successfully added the indicated number of parts
  • Error Codes:

  • INVALIDKEY - The API Key is invalid
  • INVALIDPASS - Invalid user email or password
  • INVALIDHASH - The hash key does not match a user/password
  • NOUSER - The user could not be found
  • Test Values

    API Key:
    User email:
    User password:
    User hash:
    Part List ID:

    Test Results