Create an Edge Type

post

/api/graph/EdgeTypes

Creates an edge type.
The minimum required properties in the request body are:
  • EdgeTypeName
  • LineTypeID
  • Direction

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • The edge tip style. Allowed values are:
    • Non-Directed: The edge has no arrows on the tips.
    • Directional: The edge has an arrow pointing from source to target.
    Example: Non-Directed
  • The edge type name. The name may not contain spaces, commas, or backticks.
    To avoid confusion with numeric IDs, the name value cannot be integers only or integers prefixed with the + or - symbols only. It must contain letters or other characters. For example, 1234, +1234, and -1234 are not valid, but US1234, US+1234 and US_1234 are.
    Example: ConnectsInterface
  • The line type ID. Allowed values are:
    • 0: Solid
    • 1: Dashed
    • 2: Dotted
    Example: 0
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : SuccessfulAddOperation
Type: object
The response body for a successful add operation.
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : graphEdgeTypesRead
Type: object
Show Source
  • Indicator of the edge tip style. Directional indicates the edge has an arrow pointing from source to target. Non-Directional indicates the edge has no arrows on the tips. Allowed Values: - Non-Directional - Directional
    Example: Non-Directed
  • Edge Type ID
    Example: 3
  • Edge Type Name
    Example: ConnectsInterface
  • Line Style Allowed Values - Solid - Dashed - Dotted
    Example: Solid
  • Line Type ID - 0 => Solid - 1 => Dashed - 2 => Dotted
    Example: 0

Default Response

Failed operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : errors
Type: array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type: object
An error.
Back to Top