2,212 questions
-1
votes
0
answers
25
views
Nuxt PUT method, how to pass an object?
I'm trying to fix a bug in a Nuxt application. The app has a user profile page with an edit button. When editing the user a PUT request is made to save the new data. How do I make this work?
I'm only ...
1
vote
1
answer
62
views
How to use PUT with ngx-uploadx?
I'm using Angular 20 and ngx-uploadx, but I can't seem to select a method for the API request. How can I select the method for the request, for example PUT?
This is my code:
const uploadOptions: ...
0
votes
1
answer
28
views
Allowing a filter query in a PUT endpoint that updates a set
I'm designing a REST API that provides an integration layer to an underlying system I have no control over.
Without going in to detail, in this system, there are products with default prices. A custom ...
0
votes
2
answers
71
views
Laravel API: PUT request with multipart/form-data returns empty request when using Swagger or Postman [duplicate]
I'm working on a Laravel 10.x project with an API that allows updating an event using a PUT /events/{id} endpoint. This endpoint accepts multipart/form-data to optionally upload an image and pdf, and ...
1
vote
1
answer
72
views
How to parse multipart/form-data from a put request in django
I want to submit a form to my backend and use the form data as the initial value for my form. Simple stuff if you are using a POST request:
def intervals(request, **kwargs):
form = MyForm(initial=...
-5
votes
1
answer
112
views
The PUT method is not supported for route post. Supported methods: GET, HEAD, POST [duplicate]
I'm using Laravel 12 now.
And, in the document of laravel.com, descript about @method Blade directive like below:
https://laravel.com/docs/12.x/blade#method-field
Method Field
Since HTML forms can't ...
0
votes
1
answer
192
views
Is it Possible to Make an ADF Web Activity PUT Request Without a Body?
I have an API that I am accessing using Bruno and its a PUT request that does not require a body. When I try this as a Web activity in ADF I get the error a 'valid body is required for PUT and POST ...
3
votes
1
answer
62
views
Why am I getting a 404 status code from my PUT method, when the GET method returns 200?
The method saveToDatabase() that I use to store the list of questions to my db.json on Github, returns 404 status code from the PUT method. Whereas, the same method returns a 200 status code when ...
0
votes
0
answers
60
views
Syncing SQL database with WooCommerce via REST API fails to update product prices correctly
Problem: my Node.js sync server logs show successful product updates in WooCommerce (HTTP 200 responses), but when checking the WooCommerce admin panel:
Some price/name changes aren't actually saved
...
0
votes
1
answer
57
views
AWS - put data on S3 results in TimeOutError
I am creating a dataset on AWS S3, for their Opendata program.
I am fetching audio files, which are already stored on S3.
I then segment them into smaller audio chunks, and putting those on S3 again.
...
0
votes
0
answers
42
views
Python(flask) PUT TypeError: Todo.put() got multiple values for argument 'todo_id'
I am creating a todo list app using React and Python. But the update todo function is not working properly and gave me TypeError: Todo.put() got multiple values for argument 'todo_id'.
@blp.arguments(...
1
vote
1
answer
335
views
Laravel/Inertia js/React js PUT Request Form Data Not Fully Received on Update When Including Image Upload
I'm facing a strange issue in my Laravel Inertia.js project. I can successfully create new 'Ville' resources, including image uploads. Updates also work fine if I don't upload a new image. However, ...
0
votes
0
answers
28
views
Upload File using PUT request to a Signed URL
I am trying to send a file to a signed URL using PUT request but the file is not uploading.
Below is my code:
const uploadToBucket = async (uploadUrl, fileUri, contentType, fileSize) => {
try {
...
0
votes
0
answers
45
views
Error: 400 - {"message":"Invalid json data"} While using Post method in Unity
I am trying to send a PUT request using UnityWebRequest to update game data on a server. However, I keep getting the error:
css
Copy
Edit
Error: 400 - {"message":"Invalid json data"...
0
votes
0
answers
26
views
Error while testing PUT (with EntityState.Modified) request to a database using InMemory, xUnit in .NET unit tests
I do not have much experience with testing in .NET. I ran into an issue that I do not understand how to solve. Please advise where I can read about it.
I have a backend code that works with a simple ...
0
votes
0
answers
57
views
JPA PUT request not triggering 500 code instead of 409
I'm working on a simple DB and I need to have an error 409 show up in Postman if when updating the patient record the email has already been used by another patient in the DB. I'm getting the 409 just ...
0
votes
0
answers
32
views
Why do I get an error whenever I try to withdraw money from someone's account?
The backend method in Java
@PutMapping("/withdraw/{accountId}/{amountToWithdraw}")
public ResponseEntity<Account> withdrawMoney(@PathVariable int accountId, @PathVariable double ...
1
vote
0
answers
49
views
Error method PUT HTTPS IIS 10 Angular 16 Windows Server 2019
I have a Web Site (Angular 16). That's deploy in IIS 10 (HTTPS port 443 with a Certificate)
I have ARR enabled, and on my web site tengo a rewrite ruler.
My back-end is in Node.js. It's running in the ...
0
votes
1
answer
605
views
Laravel not processing FormData in a PUT request
I'm facing an issue while trying to send a PUT request with FormData in Laravel using Inertia. I need to update a user, but the PUT request seems to be ignored, and Laravel is not processing the ...
1
vote
1
answer
72
views
how to pass data to redux toolkit mutation
In component,
const [ updateproductapi ] = useUpdateProductMutation()
formdata.append("product_name", product.product_name);
formdata.append("product_price", product.product_price);...
0
votes
1
answer
94
views
How to resend webrequest via a firefox extension?
I am developing a FireFox addon. I want to make that every time a PUT web request with debug_source: "played_threshold_reached" in its JSON request body is sent, the extension sends it with ...
1
vote
1
answer
64
views
Im getting 403 Error When put image to api
I'm getting 403 response with this error page. I'm sure my API token is correct, because my other functions working very well.
<Error>
<Code>SignatureDoesNotMatch</Code>
...
1
vote
2
answers
154
views
SAS creating global macro and printing it
I am new to SAS environment. I just want to create a global this month variable and print it & use it
in the where condition of data step. My test codes are below:
%macro vars();
%...
1
vote
0
answers
33
views
Translating RestTemplate to WebClient, PUT with empty Body
I have this code in Java 8 using RestTemplate.
@Override
public ResponseCambioEstadoDTO actualizarLead(String idLead) {
Map<String, String> uriVariables = new HashMap<>();
...
0
votes
1
answer
94
views
Put and delete methods works in Integrated pipeline mode but not in classic on my server
I have a web API application which when deployed in IIS server, PUT and DELETE methods alone does not work. But it works fine locally.
When I tried investigating more on various options like disabling ...
2
votes
1
answer
130
views
LWP PUT of a Large File Upload Without Form Data
I'm trying to implement Google's YouTube video uploading API in Perl, which, alas has no library for such. I've run into an issue with the actual PUT to upload the video file. LWP::UserAgent has a ...
-1
votes
1
answer
121
views
Upload image with PUT does not work in Production (digital ocean) - Laravel and vue
I have a weird problem: Uploading a image in local WORKS perfectly but when I upload to Production in digital ocean it does NOT.
Iam using laravel 11, vue 3 and InertiaJS
What happens in Production ...
0
votes
1
answer
76
views
If PATCH can do everything that PUT can do then why even PUT exists? [duplicate]
If PATCH can do everything that PUT can do then why even PUT exists?
I researched a lot on this topic and I am able to know basic difference between the two.
PUT is for creating or updating/replacing ...
0
votes
1
answer
45
views
Working with API in HTML--how do I send the API data and display it's response in my iframe?
Here is a snippet of code from one of my newer html projects:
<form action='https://www.Bing.com/' method='PUT'>
<div>
<label for='newTab'>New Tab?</label>
<input ...
0
votes
1
answer
44
views
GitLab package manager adds WebKitFormBoundary inside my files
I've built a small HTML/JS page that uses GitLab API to upload files into the Package Registry like:
<input class="form-control mb-1" type="file" id="formFile" />
&...
1
vote
0
answers
44
views
Cannot insert in API from code. Strangely, the same data doesn't have any problem using Postman
I am trying to insert an object into BullHorn using its API. Besides, I am using a PUT method as documentation indicated me.
This is my code:
HttpResponseMessage response = new HttpResponseMessage();
...
-2
votes
2
answers
76
views
Why do I have to pass data through param in Laravel?
I'm developing a laravel api using resource controller. There I have to use PUT method for updating something.
When I try to pass data through body with form-data the validation error happens. I have ...
1
vote
2
answers
558
views
Uploading Files/Images to S3 Server Using Angular HTTP PUT Method
I am working on an Angular application where I need to upload files or images to an S3 server using the http.put method. I have written the following code, but I am encountering issues with the upload ...
0
votes
1
answer
49
views
Cannot access PUT request body params [closed]
I am making this PUT request via Postman that has form-data body:
PUT request
And trying to populate the model using this line:
$model->load(Yii::$app->request->getBodyParams(), '');
Trying ...
-1
votes
1
answer
27
views
I'm using put method in my routes but code not working
router.put('/edit-page/:id' , (req , res) => {
console.log('Updating page:', req.params.id);
console.log('Request body:', req.body.pageUrl);
pageModel.updateOne({ pageUrl : req.params.id } ,...
0
votes
1
answer
58
views
undefined body in PUT request
I have a React / Redux / Node app that is making a request to update a user:
client/src/components/pages/AlignmentPage.tsx:
const AlignmentPage = () => {
const dispatch = useAppDispatch();
...
0
votes
1
answer
176
views
Backend Spring-Boot and FE React - 404 error for PUT:/update whereas other CRUD operations are working
I'm working on a Spring Boot application with a React frontend. I have an endpoint /employees/update that's supposed to update an employee record when a PUT request is made. However, I'm getting a 404 ...
1
vote
3
answers
2k
views
InertiaJS file upload doesn't work with PUT method
I have form to update a product with necessary data (name,description..etc), it includes an input of type file, on change it will call function handleImage, which will then store the uploaded file in ...
0
votes
2
answers
537
views
Upload / post arbitrary dir/file to S3 with preSignedUrl
I'm trying to figure out a way to send files to S3 to a signed URL that has arbitrary "directory" and "filename". Understanding that S3 doesn't have directories.
I can successfully ...
1
vote
0
answers
1k
views
PUT Request to JSON Server Returns 404 Not Found for Array Update
I'm working on a React project using JSON Server as a mock backend, but I'm encountering a 404 Not Found error when attempting to send a PUT request to update an array of items. My JSON Server is set ...
1
vote
1
answer
900
views
Error 400: "The field is required" when I tried to consume a put method in React
I don't see what's failing in the code; I want to consume a Put method, but when I do, the response returned by the API is:
"errors": {
"$": [
"The JSON value ...
-1
votes
1
answer
71
views
Python session.put return 415: Unsupported Media Type
I do not know why I receive the respone:
"415: Unsupported Media Type"
I try to put new values.
When I get some values it works fine.
code snippet:
headers = {}
headers["charset"] =...
0
votes
1
answer
44
views
POST or PUT to update all records of table?
In a REST context, should POST or PUT be applied if the database ends up calling a method to set field1 to zero in all records of table1?
1
vote
2
answers
195
views
Can't do Put requests on API hosted on my laptop and executed on another laptop [duplicate]
I just couldn't find the answer to my problem online and I hope someone can help me.
I made an API with nodejs and express (with some help from YouTube and Google).
I was able to do some get and put ...
0
votes
1
answer
68
views
Trigger Validations if property has changed
I am currently working in a C# project and doing some validations with FluentValidator.
I have a doubt about doing the validations in a PUT request.
this is the object i receive from the request
...
1
vote
0
answers
31
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 ...
0
votes
1
answer
263
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 ...
0
votes
1
answer
65
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 ...
0
votes
1
answer
695
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 ...
0
votes
1
answer
2k
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:
...