Graphs
Create a vertex
Adds a vertex to the given collection.
Note: Requires Read Only permissions to access the GeoFabric and Write permissions to access the collection.
post/_fabric/{fabric}/_api/graph/{graph}/vertex/{collection}
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
graphstring string required
The name of the graph.
collectionstring string required
The name of the vertex collection the vertex should be inserted into.
Query parameters
returnNewboolean
If set to true, the response contains the complete new document.
Request body
object required
Example request
{
"collection": "demo1"
}Response
Successfuly added the vertex when waitForSync is enabled.
Example response
{
"code": 201,
"new": {
"_id": "test/foo",
"_key": "foo",
"_rev": "_dPRuHxe--_"
},
"vertex": {
"_id": "test/foo",
"_key": "foo",
"_rev": "_dPRuHxe--_"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.