TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Update a user's name, job and city from an XML body

PUThttps://api.testingapis.com/api/xml/UserXML/update/{id}Sign in to see this endpoint's URL

Updating a seed user (101-104) returns the updated user but doesn't change the stored seed.

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)User ID.

Request body

Optional. application/xml. Model: UserXmlRequest. A <UserRequest> element with Name, Job and City.

Example body
<UserRequest><Name>Priya S.</Name><Job>QA Lead</Job><City>Pune</City></UserRequest>

Responses

200
The updated user.
404
No user with that ID.

Example

Request
curl -X PUT "https://api.testingapis.com/api/xml/UserXML/update/1001" \
  -H "Content-Type: application/xml" \
  -H "Accept: application/xml" \
  -d '<UserRequest><Name>Priya S.</Name><Job>QA Lead</Job><City>Pune</City></UserRequest>' \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: application/xml; charset=utf-8

<User xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Id>1001</Id><Name>Priya S.</Name><Job>QA Lea…

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.