Skip to content

Add bulk edit support via API #660

Description

@atownson

Plugin Version

0.6.0

Proposed functionality

Currently, the API endpoint created for each custom object only supports the PATCH and PUT method for a single object.
curl -s -X PATCH http://netbox/api/plugins/custom-objects/my-objects/1/ --data '{"status": "active"}'
Attempting to bulk update multiple objects returns a 405 response.
curl -s -X PATCH http://netbox/api/plugins/custom-objects/my-objects/ --data '[{"id": 1, "status": "active"}]'
This request is to enable this functionality for both PATCH and PUT methods.

Use case

This will reduce the number of API requests required to edit multiple custom objects.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions