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

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.

codeinteger

HTTP response code.

errorboolean required

Flag if there is an error in response. False for this response.

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.