Skip to content

Should parentBlockID be a required field when creating an IP Block #41

@tylerauerbeck

Description

@tylerauerbeck

Describe the bug
When creating an initial or standalone IP Block, I receive the following error when an IP Block should't otherwise be related to any other IP Block

"Field \"CreateIPBlockInput.parentBlockID\" of required type \"ID!\" was not provided."

To my understanding, there are situations which include at a minimum creating the initial IP Block in a deployment where an IP Block may not be related to any other IP Block. The current API doesn't allow for this as it expects parentBlockID in the createIPBlock query to have a value.

To Reproduce

mutation {
  createIPBlock(input:{
    prefix: "1.2.3.4/5"
    locationID: "testloc-123456"
    ipBlockTypeID: "tstblkt-12345"
  }) {
    ip_block{
      id
      prefix
    }
  }
}

Expected behavior
An IP Block should be created by the above query

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions