Skip to content

Trying to update Interfaces via API but get error. #12821

Closed Locked Answered by candlerb
NordloSydost-Pajje asked this question in Help Wanted!
Discussion options

You must be logged in to vote

The code that the dd command produces is:

The things that strike me immediately are:

  1. you are sending "device": "58" instead of "device": 58.
  2. when patching an interface, I would normally send "id": <interface-id> rather than attempting to identify it by a device+name combination

Therefore, although the error message complains about the mac_address, it might actually be something else that's wrong with the request and the error message is a red herring.

You definitely want to compare what your working swagger client sends, with what you're sending from PHP (using the tcpdump command I gave before)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@candlerb
Comment options

Answer selected by NordloSydost-Pajje
@NordloSydost-Pajje
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants