Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSM Assets API - how to add a field for referenced objects via api?

Günter Halmans August 5, 2025

Hi,

I would like to add a field from type "Object" to an object type via the Asset REST API, but I always get an error message "The input is not valid...".
Here is my payload:
payload = {
"name": "GH Services",
"type": "1",
"description": "This is my first test column",
"typeValue": "123", ## id of the object type the field should be referenced to.
"additionalValue": "123"
}

The request itself works, e.g. in case I add a default text field. 

Any idea how I could make it?
Thanks in advance!

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2025

HI @Günter Halmans 

So you want to update an object in an asset schema via the API?

What is the API you are making?

Can you also show the object and the object type attributes?

 

Günter Halmans August 6, 2025

H Marc,

thanks for your reply!

Yes, I would like to add a new attribute to a given objecttype via API.
I'm using the following API "Post objecttypeattribute {objectTypeId}"

My request looks like this:
Screen 01.png
...and the attributes of objecttype with ID 141 like this:
Screen 02.png
Best regards,
Günter

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events