Unable to update (PUT) on Assets

I’m attempting to programmatically update Assets using the v2 API.

I can do GET requests just fine, however ANY PUT request I make returns a 500 error. The following example is what I’m sending in.

PUT https://domain.freshservice.com/api/v2/assets/975

Authorization : Basic bHREREx0VREDACTEDxDYTdpVGs6WA==
Content-Type : application/json

    "asset_tag": "TEST-123"

However what I get in return is:

500 Internal Server Error, 187ms, 52 bytes

access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-origin: *
access-control-expose-headers: X-Path, X-Method, X-Query-String, X-Ua-Compatible, X-Meta-Request-Version, X-Request-Id, X-Runtime
access-control-max-age: 86400
cache-control: no-cache, no-store, max-age=0, must-revalidate
connection: keep-alive
content-type: application/json; charset=utf-8
date: Mon, 10 Jan 2022 03:57:38 GMT
expires: Wed, 13 Oct 2010 00:00:00 UTC
pragma: no-cache
server: fwe
status: 500 Internal Server Error
transfer-encoding: chunked
vary: Origin
x-content-type-options: nosniff
x-envoy-upstream-service-time: 83
x-frame-options: SAMEORIGIN
x-freshservice-api-version: latest=v2; requested=v2
x-fw-ratelimiting-managed: true
x-ratelimit-remaining: 139
x-ratelimit-total: 140
x-ratelimit-used-currentrequest: 1
x-request-id: 6f14f7cf-3d92-4a23-a53c-ee40421b172b
x-trace-id: 00-b6bd2ff7d52f931ac9ee8fea705d473a-098eae63a7cd8d86-00
x-xss-protection: 1; mode=block

{"message":"We're sorry, but something went wrong."}

GET requests work just fine, but PUT requests are all failing wih a 500 and no helpful error messages.

What is going on here?


Are you passing the fields which are mentioned in the document? I am seeing you are just passing only the asset_tag as per your sample