Forums

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

How do I get the custom attribute values with Insight REST?

Johannes Buverud
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.
October 9, 2018

To get the out-of-box values, the syntax is:

/rest/insight/1.0/objecttype/{id}/objects

But this does not display the custom attribute values.

What is the syntax to get all the attribute values?

2 answers

1 accepted

0 votes
Answer accepted
Johannes Buverud
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.
October 11, 2018

Found what I was looking for:)

/rest/insight/1.0/iql/objects?objectSchemaId={id}&iql=ObjectType={object_type_name} 

Johannes Buverud
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.
October 11, 2018

Looks like my Production environment needs a reindexing. This did not work there, but in my test-instances it works good:)

0 votes
Nader Nassif
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.
October 10, 2018

Hi Johannes,

This syntax should give you all information about your attributes for your objects :

/rest/insight/1.0/object/{id}/attributes

Cheers!

Nader 

Johannes Buverud
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.
October 10, 2018

Hi and thanks for your reply,

However this is not what I am after;) I need a list of all the objects with all the attributes.

This is the scenario:

I have an object type in Insight containing data that I need in another object type in the same Insight instance.

My plan is to create a JSON import job to query the object type and put the data in the other object type.

To do this, I need a json that contains all the information of every object in the object class.

Zihni Saglam
Contributor
October 11, 2018

Hi Johannes, 

I am not sure if this is what you are after, but the following api call will give you all info about all object types and attributes in a specific schema. 

/rest/insight/1.0/iql/objects?objectSchemaId={id}

 You can then extract the info you need from the resulting json.

Regards,

Zihni

Johannes Buverud
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.
October 11, 2018

.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events