Need help with CMDB API - Updating Asset Owner

Need help with CMDB API - Updating Asset Owner

Hello,

I'm trying to update asset details using the ServiceDesk Plus CMDB API (v3), specifically to assign assets to users. However, I'm encountering issues with the update operation.

Environment:
- ServiceDesk Plus version: [your version]
- Using Python with requests library
- Have valid TECHNICIAN_KEY with admin access

What I've tried:
1. Using XML format:
xml
<API version="1.0">
<update>
<where>
<parameter>
<name>CI Name</name>
<value>505875</value>
</parameter>
</where>
<set>
<parameter>
<name>CI Type</name>
<value>IP Phone</value>
</parameter>
<parameter>
<name>Site</name>
<value>User Name</value>
</parameter>
<parameter>
<name>Description</name>
<value>Asset description</value>
</parameter>
</set>
</update>
</API>


2. Tried different XML structures including:
   - Using `<operation name="update">`
   - Using `<input-data>`
   - Using `<citype>` with `<update-fields>`

The API consistently returns:

json
{
"message": "No field(s) specified to update.",
"status": "Mandatory input is empty or not found.",
"statuscode": 3021
}



Questions:
1. What is the correct XML structure for updating asset details?
2. Are there specific permissions needed for asset updates?
3. Could you provide a working example of updating an asset's Site/Owner?

Any help or documentation would be greatly appreciated.

Thank you!

                  New to ADSelfService Plus?