we need end point for JSM server for create abjects.
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.
https://confluence.atlassian.com/servicemanagementserver/assets-rest-api-documentation-1044101761.html
[deleted]
Hi Manne,
But payload i used got error, need exmple payload for create object can you help me for this.
It looks like you're new here. Sign in or register to get started.