Guest User

Hudu Asset API

a guest
Apr 18th, 2025
138
0
Never
10
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. Thank you for reaching out!
  2.  
  3. I have created a demonstration video and attached it to this message. To help guide you through the process, I’ve also provided an example JSON body and cURL request URL below similar to what you are using. I’ll explain each part to ensure you can successfully create assets using the API.
  4.  
  5. Understanding the JSON Body and API Request
  6. Field Labels in JSON Body:
  7. The labels inside your JSON body (e.g., "LISTFIELD", "ASSETTAG1", etc.) directly map to the field names in your Asset Layout in Hudu.
  8. Ensure that the names used in the JSON body match exactly with the field names in your Asset Layout to avoid errors.
  9. Best Practice for Field Formatting:
  10. The easiest way to understand how fields should be formatted is to:
  11. Manually create an asset in Hudu using your desired Asset Layout.
  12. Run a GET request using the /assets endpoint with the asset’s name as your query.
  13. This GET request will return the asset’s data in the correct format, showing you how each field appears in the API response. You can then use this as a template for future POST requests.
  14.  
  15. Example cURL Request:
  16. curl -X POST "https://clientsupport.hudu.technology/api/v1/companies/9/assets" \
  17. -H "accept: application/json" \
  18. -H "x-api-key: YOUR_API_KEY" \
  19. -H "Content-Type: application/json" \
  20. -d '{...}'
  21. Replace the following in the URL:
  22. clientsupport.hudu.technology → with your Hudu domain.
  23. 9 → with your specific company ID.
  24. YOUR_API_KEY → with your Hudu API key.
  25.  
  26. Example JSON Body:
  27. {
  28. "asset": {
  29. "name": "Test112", // The name of the asset
  30. "asset_layout_id": 51, // ID of the Asset Layout used
  31. "primary_serial": "SN123456789", // Primary serial number of the asset
  32. "primary_mail": "[email protected]", // Primary email linked to the asset
  33. "primary_model": "Model X", // Model information
  34. "primary_manufacturer": "Example Manufacturer", // Manufacturer details
  35. "slug": "adf496e0ae9c", // Unique identifier for the asset
  36. "custom_fields": [
  37. {
  38. "LISTFIELD": "{\"list_ids\":[21]}", // List selection field
  39. "ASSETTAG1": "[{\"id\":3030,\"url\":\"/a/ddc9e99ac957\",\"name\":\"AA10000234343436\"}]", // asset tag field
  40. "ASSETTAG2": "[{\"id\":2812,\"url\":\"/a/d9207275c8dd\",\"name\":\"Import testing #2\"}]", // asset tag field
  41. "ASSETTAG3": "[{\"id\":2810,\"url\":\"/a/0c85302316cf\",\"name\":\"Example Asset\"}]", // asset tag field
  42. "MODEL": "more text here, this is a text field", // Standard text field
  43. "SERVICETAG": "more text here, this is a text field", // Standard text field
  44. "DATEFIELD": "2025-02-21T00:00:00.000Z", // Date field (ISO 8601 format)
  45. "RICHTEXTFIELD": "<p>This is a rich text field</p>" // Rich text field with HTML formatting
  46. }
  47. ]
  48. }
  49. }
  50. Explanation of Each JSON Field:
  51. Field Purpose
  52. name Name of the asset.
  53. asset_layout_id The ID of the Asset Layout you’re using.
  54. primary_serial The primary serial number of the asset.
  55. primary_mail Associated email address.
  56. primary_model The model of the asset.
  57. primary_manufacturer The manufacturer of the asset.
  58. slug Unique identifier for the asset in Hudu.
  59. custom_fields Holds all additional fields specific to your Asset Layout.
  60. LISTFIELD Example of a list selection (with list IDs).- This is a field name(a label)
  61. ASSETTAG1/2/3 Links to other assets within Hudu.- This is a field name(a label)
  62. MODEL Free-text field for the model.- This is a field name(a label)
  63. SERVICETAG Service tag of the asset.- This is a field name(a label)
  64. DATEFIELD Date field, formatted as YYYY-MM-DDTHH:MM:SS.ZZZZ.- This is a field name(a label)
  65. RICHTEXTFIELD Rich text field that supports HTML tags for formatting.- This is a field name(a label)
  66.  
  67. Key Reminders:
  68. Asset Layout ID: Ensure the asset_layout_id matches the layout you're using.
  69. Field Labels: Match the labels exactly with your Hudu Asset Layout fields.
  70. Custom Fields Formatting: The format for each field depends on its type (e.g., text, list, asset tag, etc.).
  71. API Key: Keep your API key secure and include it in your headers when making API calls.
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Nuhadad
    26 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Fihadiq
    23 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Satorsi
    8 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=pmocxeagpk
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment