Assets

Create an accessory asset

Create a new accessory asset

post/assets/accessories

Request

Request body

fieldsobject required

Map of field label to raw JSON value for each field to set (not FieldValue objects). Formats match the API overview (dates, RFC3339 datetimes, {"id"} for references, etc.).

Example request

{
  "fields": {
    "Name": "Engineering MacBook Pro 14",
    "Model": "MacBookPro18,4",
    "Serial Number": "C02XG0FDJK7Q",
    "Status": {
      "id": "6924631f16a853000117a678"
    },
    "Owner": {
      "id": "605a1f77bcf86cd7994390aa"
    },
    "Location": {
      "id": "605b2f88bcf86cd7994390bb"
    },
    "Purchase Date": "2024-06-15",
    "Date Deployed": "2024-06-15T14:30:00",
    "Purchase Cost": {
      "amount": 2499.99,
      "currency": "USD"
    },
    "Disk Encrypted": true
  }
}

Response

Accessory asset created successfully

idstring required

The unique identifier of the asset

jcSystemIdstring

JumpCloud system identifier for device assets, as a lowercase hex string.

fieldsobject required

Asset field values keyed by field label (FieldValue per key). Labels match GET /assets/field-configurations.

Example response

{
  "id": "507f1f77bcf86cd799439011",
  "jcSystemId": "605c3f99bcf86cd7994390cc",
  "fields": {
    "Name": {
      "editable": true,
      "value": "Finance laptop 12"
    },
    "Model": {
      "editable": true,
      "value": "MacBookPro18,3"
    },
    "Status": {
      "editable": true,
      "value": {
        "id": "6924631f16a853000117a678",
        "name": "In stock",
        "type": "select"
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.