Replies: 3 comments
-
|
Does anyone have a clue how to access the "context data" for this endpoint? |
Beta Was this translation helpful? Give feedback.
-
|
Netbox version? Did you remember to include data in the POST to the API endpoint? It works for me on 4.0.11 following the example. Response: ... and if you change the Accept header to Content of template: |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Brian! Oddly enough that worked for me too. My python program was failing to do the very same thing... but it turned out to be a "programmer error" and the data that was supposedly getting passed to the template was getting replaced before the actual requests.post() call ... DOH! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
From the example here:
https://netboxlabs.com/docs/netbox/en/stable/features/configuration-rendering/#general-purpose-use
... in the template, how do I access "foo" and "bar"?
With a template like:
Foo is {{ foo }}
Bar is {{ bar }}
... the values are empty.
-- Ed
Beta Was this translation helpful? Give feedback.
All reactions