Skip to content

http PATCH and json Data #51

@celevra

Description

@celevra

Hi,

i'm not exactly sure how i can use the http patch method and transfer json data?
I want an equivalent for

curl -X PATCH --data '{"rrsets": [ {"name": "test.example.net.", "type": "A", "ttl": 3600, "changetype": "REPLACE", "records": [ {"content": "127.0.0.1", "disabled": false} ] } ] }' -H 'X-API-Key: xxx' http://127.0.0.1:8081/api/v1/servers/localhost/zones/example.net.

setting the Header is no problem, but where can i set the request type and the data?

thanks for your help

regards

celevra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions