Change the position of an object type in the object type hierarchy tree.
string
RequiredThe new position of the object type.
integer
integer
Returns the updated object type.
1
2
3
4
5
6
7
8
curl --request POST \
--url 'http://{baseurl}/rest/assets/1.0/objecttype/{affectedId}/position' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"toObjectTypeId": 2154,
"position": 2154
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"id": 2154,
"name": "<string>",
"type": 2154,
"description": "<string>",
"icon": {
"expand": "<string>",
"project": "<string>",
"position": "<string>",
"after": "<string>",
"id": 2154,
"name": "<string>",
"url16": "<string>",
"url48": "<string>"
},
"position": 2154,
"created": "<string>",
"updated": "<string>",
"objectCount": 2154,
"parentObjectTypeId": 2154,
"objectSchemaId": 2154,
"inherited": true,
"abstractObjectType": true,
"parentObjectTypeInherited": true
}
Create a new object type.
The new object type to create.
integer
string
string
integer
integer
integer
boolean
boolean
Returns the created object type.