Upload device_type images via API #5020

Closed
opened 2025-12-29 19:23:14 +01:00 by adam · 4 comments
Owner

Originally created by @nyevess on GitHub (Jun 22, 2021).

NetBox version

v2.11.1

Feature type

New functionality

Proposed functionality

I suggest implement the method of upload images for device_type via API

Use case

I'm doing a big migration from OpenDCIM to Netbox, and I need migrate my device_type images via API, and I have not been able to find a way for doing this.
If this it's possible now, please let me know how to doing.
Thanks

Database changes

No response

External dependencies

No response

Originally created by @nyevess on GitHub (Jun 22, 2021). ### NetBox version v2.11.1 ### Feature type New functionality ### Proposed functionality I suggest implement the method of upload images for device_type via API ### Use case I'm doing a big migration from OpenDCIM to Netbox, and I need migrate my device_type images via API, and I have not been able to find a way for doing this. If this it's possible now, please let me know how to doing. Thanks ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurepending closurestatus: revisions needed labels 2025-12-29 19:23:14 +01:00
adam closed this issue 2025-12-29 19:23:15 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 22, 2021):

I suggest implement the method of upload images for device_type via API

What specific implementation are you proposing?

@jeremystretch commented on GitHub (Jun 22, 2021): > I suggest implement the method of upload images for device_type via API What specific implementation are you proposing?
Author
Owner

@nyevess commented on GitHub (Jun 22, 2021):

I would propose adding to the POST request, two fields:

  1. Front image
  2. Rear image
    And they will processed like the rest of the fields, codifying the image file (jpg,png,etc.) with base64 for example.
    I would clarify I'm not an expert programming and I don't know the Netbox code.
    Do you see this as possible?
    Thank you!
@nyevess commented on GitHub (Jun 22, 2021): I would propose adding to the POST request, two fields: 1. Front image 2. Rear image And they will processed like the rest of the fields, codifying the image file (jpg,png,etc.) with base64 for example. I would clarify I'm not an expert programming and I don't know the Netbox code. Do you see this as possible? Thank you!
Author
Owner

@github-actions[bot] commented on GitHub (Aug 22, 2021):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Aug 22, 2021): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Sep 21, 2021):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Sep 21, 2021): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5020