HomeGuidesRecipesAPI ReferenceChangelog
API Reference

Updates an existing computer by MAC address

Certificates and mdm_capable are ignored.

Computer resources include hundreds of data points. While there are many more elements that can be used to update computer resources via the API, the sample request body below includes elements that are not overwritten during the inventory submission process for managed devices. For a more complete list of elements and data points that can be set for a computer resource, perform a GET to a managed device, using the response body to reference supported objects/elements.

<computer>
    <general>
        <name>admin’s MacBook Pro</name>
        <udid>EBBFF74D-C6B7-5589-93A9-19E8BDFEDE33</udid>
        <barcode_1/>
        <barcode_2/>
        <asset_tag/>
        <remote_management>
            <managed>true</managed>
            <management_username>jamfadmin</management_username>
            <management_password>string</management_password>
        </remote_management>
        <site>
            <id>-1</id>
            <name>None</name>
        </site>
    </general>
    <location>
        <username/>
        <realname/>
        <real_name/>
        <email_address/>
        <position/>
        <phone/>
        <phone_number/>
        <department/>
        <building/>
        <room/>
    </location>
    <purchasing>
        <is_purchased>true</is_purchased>
        <is_leased>false</is_leased>
        <po_number/>
        <vendor/>
        <applecare_id>test</applecare_id>
        <purchase_price/>
        <purchasing_account/>
        <po_date/>
        <po_date_epoch>0</po_date_epoch>
        <po_date_utc/>
        <warranty_expires/>
        <warranty_expires_epoch>0</warranty_expires_epoch>
        <warranty_expires_utc/>
        <lease_expires/>
        <lease_expires_epoch>0</lease_expires_epoch>
        <lease_expires_utc/>
        <life_expectancy>0</life_expectancy>
        <purchasing_contact/>
        <os_applecare_id/>
        <os_maintenance_expires/>
        <attachments/>
    </purchasing>
    <extension_attributes>
        <extension_attribute>
            <id>2</id>
            <value/>
        </extension_attribute>
    </extension_attributes>
</computer>
Language
Credentials
Basic
base64
: