Perhaps it is good to use the right path for api? Idiot.
This commit is contained in:
parent
53d15e76f4
commit
491acef347
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ func (i *Dcim_Interfaces_Create) CreateInterface(n *NetBox) error {
|
|||
Transport: transport,
|
||||
}
|
||||
fmt.Println(bytes.NewBuffer(interfaceData))
|
||||
request, err := http.NewRequest("POST", n.RootURL+"/dcim/interfaces/", bytes.NewBuffer(interfaceData))
|
||||
request, err := http.NewRequest("POST", n.RootURL+"/api/dcim/interfaces/", bytes.NewBuffer(interfaceData))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue