APIv3 PUT issue 4001 Invalid input
APIv3 PUT issue 4001 Invalid input
Hi, I'm tring to update any data on ASSETS but always failed, what can be wrong?
API key have SDAdmin role, so it's maximum role
#Python version - 3.8
#This script requires requests module installed in python.
import
requests
url
=
"
https://server/api/v3/assets/4"
headers
=
{
"authtoken"
:
"REAL-API-TOKEN"
}
input_data
=
'''{
"asset":{
"department":{
"name": "DepA"
}
}
}'''
data
=
{
'input_data'
:
input_data
}
response
=
requests
.
put
(
url
,
headers
=
headers
,
data
=
data
,
verify
=
False
)
print
(
response
.
text
)
and responce is
{"response_status":{"status_code":4000,"messages":[{"status_code":4001,"field":"department","type":"failed","message":"
Invalid input
"}],"status":"failed"}}
I have checked that 4001 error is
Id or Name given in Input does not exist or not in use or user cannot set the value
Id is OK, i can get info by link:
https://server/api/v3/assets/4?TECHNICIAN_KEY=REALKEY
User can not set the Value? strange... it's maximum rights user.
I did same on different languages, JavaScript, PowerShell, python, but still failed.
Any advice will be helpfull.
SD version is
14201
Topic Participants
Denis
Dinesh Bhaskaran
New to M365 Manager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Live chat
Workshops
Contact support
New to M365 Manager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Live chat
Workshops
Contact support
New to RecoveryManager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Roadmap
Workshops
Contact support
Live chat
New to RecoveryManager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Roadmap
Workshops
Contact support
Live chat
New to Exchange Reporter Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Workshops
Live chat
Contact support
New to Exchange Reporter Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Workshops
Live chat
Contact support
New to SharePoint Manager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Workshops
Live chat
Contact support
New to SharePoint Manager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Workshops
Live chat
Contact support
See all integrations
New to ADManager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Roadmap
Workshops
Contact support
Live chat
See all integrations
New to ADManager Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Roadmap
Workshops
Contact support
Live chat
New to ADSelfService Plus?
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Roadmap
Workshops
Contact support
Live chat
Start your free trial
Resources
Guides
What's new
How-tos
Latest build
Roadmap
Workshops
Contact support
Live chat
Related Products
ADAudit Plus
AD360
ADSelfService Plus
RecoveryManager Plus
M365 Manager Plus
Exchange Reporter Plus
Log360
ADManager Plus
Log360
ADSelfService Plus
EventLog Analyzer
DataSecurity Plus
AD360
Exchange Reporter Plus
AD360
ADManager Plus
ADAudit Plus
Exchange Reporter Plus
M365 Manager Plus
RecoveryManager Plus
SharePoint Manager Plus
Log360
Log360 cloud
ADAudit Plus
DataSecurity Plus
Exchange Reporter Plus
CSP
AD360
ADManager Plus
ADAudit Plus
ADSelfService Plus
M365 Manager Plus
EventLog Analyzer
AD360
Log360
AD360
ADManager Plus
ADAudit Plus
M365 Manager Plus
SharePoint Manager Plus
ADSelfService Plus
Log360
ADManager Plus
ADAudit Plus
AD360
RecoveryManager Plus
ADSelfService Plus
Exchange Reporter Plus
Log360
ADManager Plus
AD360
ADAudit Plus
ADSelfService Plus
M365 Manager Plus
RecoveryManager Plus
Exchange Reporter Plus
ADAudit Plus
EventLog Analyzer
Log360
ADManager Plus
ADSelfService Plus
Exchange Reporter Plus
AD360
ADManager Plus
ADAudit Plus
ADSelfService Plus
M365 Manager Plus
RecoveryManager Plus
Exchange Reporter Plus
Log360
EventLog Analyzer
ADAudit Plus
Log360 cloud
DataSecurity Plus
Exchange Reporter Plus
CSP
AD360
ADManager Plus
ADAudit Plus
ADSelfService Plus
EventLog Analyzer
Exchange Reporter Plus
DataSecurity Plus
Office365 Manager Plus
RecoveryManager Plus
SharePoint Manager Plus
Log360