Hi Suseendran.
You can do it like this
POST /rest/assets/1.0/object/create
{
"objectTypeId": 1,
"attributes": [
{
"objectTypeAttributeId": 2,
"objectAttributeValues": [
{
"value": "Hello"
}
]
}
]
}
The objectTypeId you can find by looking in browser when you are on a object or by clicking configure on at objecttype.
The objectTypeAttributeId you can find when you go to a objecttype and click on the Attributes tab, then the first column will show you the id.
Beaware if you are on a older version of assets then the api might look like this instead:
/rest/insight/1.0/object/create
You can find full overview of assets rest api here and what precise api to use depending on your version.
Hi Manne,
{
"objectTypeId": 1,
"attributes": [
{
"objectTypeAttributeId": 2,
"objectAttributeValues": [
{
"value": "Hello"
}
]
}
]
}
But payload i used got error, need exmple payload for create object can you help me for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
[deleted]
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.