Replies: 2 comments
-
NetBox has a built-in API documentation that can generate a sample curl command for you. You are looking for the /api/extras/image-attachments/ endpoint for uploading images. https://NetBoxURL/api/schema/swagger-ui/#/extras/extras_image_attachments_create should help point you in the correct direction. Here is a sanitized curl command output example generated from my instance (Using the multipart form example): curl -X 'POST' |
Beta Was this translation helpful? Give feedback.
-
Thanks zmaster7, I'll give that a try. |
Beta Was this translation helpful? Give feedback.
-
What would be the curl command that will upload an picture to the Images section of a rack page?
URL = https://my.netbox.app/dcim/racks/38/
FILE = myfile.jpg
Beta Was this translation helpful? Give feedback.
All reactions