Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wajahat Ch
Pod
Commits
01b21c68
Unverified
Commit
01b21c68
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
Update insert_tree docs
parent
b9828210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/HTTP_API.md
+7
-3
docs/HTTP_API.md
with
7 additions
and
3 deletions
+7
-3
docs/HTTP_API.md
+
7
-
3
View file @
01b21c68
...
...
@@ -201,15 +201,19 @@ Mark an item as deleted:
```
Insert a tree with edges (of arbitrary depth) in one batch.
Each item should either be an object with only
`uid`
and
`_edges`
fields:
Each item should either be "a reference", e.g. an object with only
`uid`
and
`_edges`
fields,
or a full item which would then be created.
"Reference" type of items look like that
(the
`uid`
property mandatory, no other properties are present):
```
json5
{
"uid": 123456789 /* uid of the item to create edge with */,
"_edges": [ /* see below edges definition*/ ]
}
```
Or the full item to be created, in which case
`uid`
is optional,
but all standard mandatory item fields need to be present
:
And in order to insert an item, specify all its properties (
`uid`
is optional in this case)
:
```
json5
{
"_type": "SomeItemType",
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets