How to use PATCH verb with curl

后端 未结 5 656
旧时难觅i
旧时难觅i 2020-12-04 18:54

I am trying to make a PATCH call to a server. I am using the following command:

curl --data status=closed -X PATCH https://api.viafoura.com/v2/dev.viafoura.         


        
5条回答
  •  天涯浪人
    2020-12-04 19:21

    An alternative way is as follow, this is through a POST call though

    curl --data status=closed https://api.viafoura.com/v2/dev.viafoura.com/pages/7000000043515?verb=PATCH 
    

    I am guessing this is not a general way and only applies to this specific instance.

提交回复
热议问题