JSM Premium Asset API

Myles Boyd
Contributor
January 15, 2025

I am trying to update an asset entry

JSON body

{
"id": "3844",
"objectTypeId": "58",
 "attributes": [
      "objectTypeAttributeId": "346",
      "objectAttributeValues": [
        {
          "value": "Business Development"
        }
      ],
      "objectTypeAttributeId": "349",
      "objectAttributeValues": [
        {
          "value": "5de546d905eece0d0920c044"
        }
      ]
]
}
Using PostMan, I get

 

   "errorMessages": [
        "That input is not valid. Check the parameter value and try again."
    ],
    "errors": {}
The first attribute is the default asset NAME attribute
The second is a user lookup field I added
The URL is correct, as if I change PUT to GET it returns the current values
Any ideas greatfully appreciated.

1 answer

1 vote
Myles Boyd
Contributor
January 16, 2025

Human error

Missed {}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events