Questions tagged [put]

PUT is a HTTP method which requests that the enclosed entity be stored under the supplied URL.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Make a PUT/POST request in JSON-Server Android Java

I created a JSON-Server. The server contains this: { "employees": [ { "id": 1, "name": "Pankaj", "salary": "10000" ...
Danielps1818's user avatar
1 vote
0 answers
24 views

update crud angular formControlName databinding

hello i am trying to update my report chambre , when i click modifier i should receive the data of room already selected ( idChambre) all the other fields are working good but not for idChambre this ...
eya joma's user avatar
0 votes
1 answer
57 views

PUT 400 (bad request) HTTP Error Status 400

I am trying to update the quantity of my stocks using this function and it says PUT 400 (bad request). In my terminal for the back, i've inserted a console.log that confirms if the PUT request was ...
Kristian Diaz's user avatar
0 votes
0 answers
6 views

HTTP: Empty put on existing resource behaviour

What happens, if a a client overwrites an existing resource on my webserver with an empty PUT command (no body, content-length: 0). Will my resource's content be deleted (not the resource itself) or ...
Leo Raasch's user avatar
0 votes
1 answer
28 views

Excel PUT to API endpoint failing with bad request

I'm trying to duplicate an Insomnia POST request to an API endpoint in Excel. I believe I'm close but I'm obviously missing something in the Excel Power Query request. Here is the working CURL request ...
Dawg99's user avatar
  • 1
0 votes
1 answer
25 views

Troubleshooting NULL Value Assignments in PUT Update Requests with FASTAPI

My issue revolves around a 'Product' model in my database, where certain values, such as the description, are optional and can either hold a string or a null value. I've created an update function for ...
unique_alex020's user avatar
0 votes
1 answer
32 views

How can I use Playwright to PUT multipart form-data in Python?

I am trying to use Playwright to PUT multipart form-data with the Python API. Here is the relevant documentation. However, it's not clear how to structure the multipart argument. The docs say: ...
daviewales's user avatar
  • 2,224
0 votes
0 answers
16 views

Nginx put/post save body in container

I am trying to confure a post or put request with nginx for save the loaded file in another docker container. I have try to configure nginx take a request like https://myWeb/file/a/b/FileUpdate/...
Naomi's user avatar
  • 37
1 vote
0 answers
61 views

Why the CURL PUT request with basic AUTH via API doesn't send JSON data?

I make a PHP CURL PUT JSON request with basic AUTH via API: $data = <<<JSON { "name": "John", "age": "32", "address": { ...
newert's user avatar
  • 35
1 vote
0 answers
65 views

How to nicely solve self-referencing object update error?

In my project I have a bunch of models, that are all derived from the class 'Entity'. Simplified, this means they all have the following properties: public Guid Id { get; set; } public DateTime ...
Miles's user avatar
  • 11
0 votes
0 answers
35 views

In a mysql-django-axios-react setup.... how to update a column in the db using its own value

Long time listener, first time caller.... learned so much from the forum and its community and many thanks to the platform and the community. Hopefully can get my skills up to contribute. Have a Mysql ...
Farzam's user avatar
  • 1
0 votes
0 answers
21 views

How to Upload an Image with Tasker to an S3 Server via HTTP Post or REST using AWS Access and Secret Keys?

I am working on a project where I need to upload images to an AWS S3 bucket using either HTTP Post or REST API. I have the AWS Access Key and Secret Key, but I'm not entirely sure how to utilize them ...
Florian Denis's user avatar
-1 votes
1 answer
27 views

Axios Get does recognize the db collection balances but Put or Post or Patch does not

so I have a fullstack React App, this type of code I have data on db. collection that I can access by Axios Get, but this data is not accessible by Put to update it, Its a balance credit account that ...
Yousra dechir's user avatar
0 votes
0 answers
5 views

How I can print results from a Java program in a HTML file?

I have a Java program that checks how many emails are unverified/unread in INBOX, Junk Email, Drafts, Sent Items and Deleted Items. How can I print these results in an HTML file as a presentation with ...
Cristian21's user avatar
1 vote
2 answers
72 views

Setting json string in http requests in Perl

Following Perl code generates an error printed below: use strict; use Data::Dumper; use LWP::UserAgent; use JSON; my $token = 'my token'; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->...
Jean's user avatar
  • 21.9k
1 vote
0 answers
25 views

when i click update button error show user update failed ``

1. userRoute.js code is router.put('/update/:id' , user.update) 1. userControler.js code is exports.update = async (req, res) => { const { fullname, homeAddress, barberAddress } = req.body; ...
Nasir waqas's user avatar
0 votes
0 answers
82 views

PUT request gives "Request failed with status code 404" error message in nodejs, axios

MAJOR UPDATE: THAT BOOTCAMP'S API IS BROKEN. ERROR ISN'T FROM MY SIDE What problem I had had: Actual Problem: I'm working on server side using axios, nodejs, following Angela-Yu's Webdev Bootcamp. ...
Anu's user avatar
  • 1
-2 votes
1 answer
45 views

How to solve this error on sending a PUT Request from my swift app

I got a url to which I have to send put request. these are headers which are being sent -, also the body looks like this - (the. second picture) earlier I was having issues on Postman because in the ...
AadityaS's user avatar
0 votes
0 answers
23 views

How can I update a custom sticker on a card on Trello using the Trello API?

After posting a custom sticker on a card, I followed the documentation and it says that the endpoint to update it should be: curl --request PUT \ --url 'https://api.trello.com/1/cards/{id}/stickers/{...
Arielj's user avatar
  • 1
0 votes
1 answer
133 views

use both PUT and POST methods from same API using FastAPI

I'm about to create an API using FastApi wherein I have to search for 'user_name' in db. If 'user_name' exists then I have to update the user_details. If the 'user_name' doesn't exist, then I have to ...
madhu mitha's user avatar
1 vote
0 answers
36 views

MongoDB not updating with Put request, Next.js 13

I am using Postman to test my endpoints and everything is working except for updating my documents in Mongodb, I am using PUT request and this is my code, the file path: src/app/api/users/[id] import {...
Mario David Gutierrez's user avatar
1 vote
1 answer
15 views

How can I increase or decrease the value when put to a database Firebase RD, javascript

I have a database in Firebase with current stock. I want to be able to change it with a new value plus input2 or minus input1 new values that I put in in DOM. How can I update the stock with plus or ...
gritoverflow's user avatar
-2 votes
1 answer
25 views

What's the correct RESTful behaviour of a PUT method with an auto generated ID in URL if the resource does not exist?

I'm designing a REST API for a CRUD application. Resource ID's are UUIDs that are generated by the database on insert. So when I make a PUT, let's say something like PUT http://host/books/{database ...
Wieland Gmeiner's user avatar
1 vote
1 answer
74 views

How do I send a PUT request with JSON body with cURL? [duplicate]

I have this code to send a PUT request: $curl = curl_init($url); curl_setopt($curl, CURLOPT_PUT, true); curl_setopt($curl, CURLOPT_BODY, json_encode($result)); curl_exec($curl); But that doesn't ...
Bart Friederichs's user avatar
1 vote
1 answer
154 views

Django Ninja Update a FileField

I am trying to create a simple restful API using Django-ninja. Here is the post method to add a new record: @router.post('/add', response={201: WordSchema, 401: DefaultSchema, 404: ...
MSH's user avatar
  • 1,885
0 votes
1 answer
59 views

Axios request can't access relevant method in backend

I have a problem with using Axios request to access method in backend. Unfortunately, I have to use pre-made by others code in both backend and frontend and there is a limit to how much I can change ...
EvgenieT's user avatar
  • 232
-1 votes
1 answer
23 views

SpringMVC PUT request to edit data but instead, got a new one

I'm practicing Spring/Thymeleaf and facing an issue I create a a PUT request to edit but instead it act as POST by create a new data Here are my codes Controller // imports @Autowired private ...
Kai Iemsawat's user avatar
0 votes
0 answers
18 views

How to modyfy the part of the composite key on the database

There is a need to map different naming for the same real objects, depending on the client. Table1: ID (primary key) NAME (unique) Table2: MAIN_ID (foreign key to Table1.ID) CLIENT CLIENT_ID The ...
dgad's user avatar
  • 55
1 vote
0 answers
28 views

Locust- how to avoid conflict when multiple virtual users performing the same post or put

For write operations such as POST and PUT, is there a way to avoid conflict when multiple virtual users performing the same task? Is there a better implementation? from locust import HttpUser, task, ...
john gomez's user avatar
0 votes
0 answers
11 views

AngularJS - Getting 415 Unsupported Media Type error for $http.put method with encoded parameter

I have one endpoint(PUT method) '/api/updateCode' which is expecting a code as parameter that is in encoded format.('/api/updateCode/{code}' - sample swagger documentation) In the controller Im ...
knbibin's user avatar
  • 1,121
0 votes
1 answer
63 views

Unable to Upload or Update Fields in Podio via API in Python, despite Successful Authentication

I am working on a Python script to automate file uploads and field updates to a Podio application. I am using the requests library to send HTTP requests to the Podio API. I am able to authenticate ...
AC Lotusi's user avatar
0 votes
0 answers
74 views

How to add a file to an http server

I am testing an http server, when I send a GET request to the server http://httpserver:10000/test.txt , this server replies with the content of the test.txt file. If I want to add a file to the server,...
ethicalhacker's user avatar
0 votes
0 answers
26 views

Spring boot geoserver File Editing

I have a problem with PutMapping to edit style from http://10.56.56.66:8081/geoserver/rest/styles by body in postman. When I enter http://localhost:8055/point where point is my style I get error 500. ...
Piterek237's user avatar
0 votes
0 answers
70 views

Updating data using fetch

I have a problem with data updates using Rest API, fetch and Jinja2. When I call the put request, the update is successful, as shown in bash, but the data in the database itself is not updated. ...
Rauf 44's user avatar
0 votes
0 answers
60 views

File editing Geoserver Rest Api SpringBoot

Can You help me edit the file? First off how should it work. The {stylere} file is a path variable of course. When I will enter http://localhost:8055/edit-style/{stylere} I get the form on the page ...
Piterek237's user avatar
0 votes
0 answers
310 views

Brevo API update contact (PUT request) - Error "duplicate_parameter"

In our Python code, we use the PUT-request of the Brevo API (https://developers.brevo.com/reference/updatecontact) to update the attributes of each of our Brevo's contacts. While in many cases, the ...
sylvain's user avatar
  • 982
1 vote
0 answers
18 views

HTTP PUT Request being blocked by the browser [duplicate]

I have this html code: <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title>Contato</title> <link rel="...
Kleber Mota's user avatar
  • 8,415
0 votes
0 answers
60 views

Chunk compressing outgoing request

I am sending a PUT streaming request and want to send in chunks compress my payload For smaller payloads, I will just compress the entire payload, then chunk the data. (which seems to be the ...
lastShekel's user avatar
0 votes
0 answers
31 views

How to submit a GET and PUT request in C#? Have already done so via PowerShell

I'm venturing out from my PowerShell cave and have started dabbling in C# (Due in main part to most people telling me it's a great stepping stone). I've managed to convert most of my existing scripts ...
Gavin Eldred's user avatar
0 votes
0 answers
25 views

Use PATCH-request in Swagger Petstore API?

It is my understandning that the petstore API is an example of a well-structured API: https://petstore.swagger.io/#/ In this API there is a call: https://petstore.swagger.io/#/pet/updatePetWithForm ...
MaxBiceps's user avatar
0 votes
0 answers
50 views

How can I use PUT method with PrestaShopWebservice

Currently I'm trying to update or make a new record of stock_availables using the presashop Webservice, however, after create/up (within of prestashop backoffice admin view) all the functionallity of ...
mr d3v's user avatar
  • 1
0 votes
0 answers
18 views

postman (cURL) works, python PUT request doesn't

I got presigned url to aws s3 server and it works perfect in postman (via cURL) but if I try it in python I get signature error as response. Can you please help me with this issue (I am really ...
Robin Popelka's user avatar
0 votes
1 answer
29 views

Django ModelViewSet: passowrd not encrypted when using PUT method

I use DRF ModelViewSet for user account CRUD operations. I have "extend" Django user model with Profile model to store complementary user's informations. I have override create and update ...
SLATER's user avatar
  • 623
0 votes
0 answers
15 views

I am building a blog, my issue is whenever i try to update a post it gives a backend error that says id not found. I am using expressjs and mongo db

app.put('/post/:id', uploadMiddleware.single('file'), async (req, res) => { try { let newPath = null; if (req.file) { const { originalname, path } = req.file; const parts = ...
Zubi's user avatar
  • 11
0 votes
2 answers
284 views

Keep getting a CORS error for put requests in Django from browser

I keep getting a CORS error when I make a put request to my Django server from my frontend application (Fetch API) but not from Postman. Here is the error: Cross-Origin Request Blocked: The Same ...
samgon's user avatar
  • 9
0 votes
1 answer
25 views

Handling put requests in a React web application

I'm creating a web application with React where a user can keep track of collectable items. The React app will be connected to AWS via API Gateway, and will make requests which will be handled by ...
C-delb's user avatar
  • 31
0 votes
0 answers
23 views

Getting 405 method not found for Put request

I am working on put call that update some data but ut throw me 405 method not found error. But when I tried using post call it work fine. I wanted to it work with put call also. const opts = { ...
Chan's user avatar
  • 1
0 votes
2 answers
24 views

API with a PUT request in Modelviewset which has not null values

When calling a API with a PUT request, I get a message saying that the fields name and name_abbrev are mandatory: What are way in which I can carryout put operation without supplying 'name' and '...
Venkatesan Sundaram's user avatar
1 vote
1 answer
278 views

Laravel 10.9.0 update using ajax error when submiting data

I'm trying to update data by opening modal bootstrap, and got an error when PUT data from AJAX to route this is the error 'localhost:8000/nilaiUpdates/1 419 (unknown status) I tired to change so many ...
Dwi Reza 's user avatar
0 votes
0 answers
29 views

Invoke-RestMethod REST API PUT Method with If-Match Error

I am trying to use the PUT method in my REST API and in that i want to USE If-Match in header so in there i am getting Invalid that If-Match error everything is correct and all restapi and If-Match ...
Akshay Vidap's user avatar

1
2 3 4 5
45