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?
Found what I was looking for:)
/rest/insight/1.0/iql/objects?objectSchemaId={id}&iql=ObjectType={object_type_name}
Looks like my Production environment needs a reindexing. This did not work there, but in my test-instances it works good:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johannes,
This syntax should give you all information about your attributes for your objects :
/rest/insight/1.0/object/{id}/attributes
Cheers!
Nader
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.