Skip to content

[Feature]: Add POST endpoint for user-keys #181

@DariushMoh

Description

@DariushMoh

NetBox version

4.1.11

Feature type

Add a function

Proposed functionality

I came across the same issue as this one: #89. It would be nice to have a proper api endpoint to create user-keys. The endpoint /api/plugins/secrets/user-keys/ only supports get request at the moment (at least from what I see in the netbox rest schema).

Use case

At the moment, I have to use /plugins/secrets/user-keys/add/ endpoint in my automation flow but it doesn't work like the rest of the api endpoint since this one is used by the web interface. Indeed, it uses csrftoken instead of the bearer token I use everywhere.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions