PUT
The PUT method on the root of the domain will insert or update the record(s).
PUT
https://api.traverzer.tech/
Headers
Name
Value
Content-Type
application/json
Authorization
<token>
Body
Name
Type
Description
[Table Name]
string
Name of the table
[Table Name].[Field Name]
string
Value of the field
Request
fetch('https://api.traverzer.tech/', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'Authorization': <token>
},
body: JSON.stringify({
user: {
username: "johndoe",
email: "[email protected]",
profile: {
name: "John Doe",
address: {
street: "123 Main St",
city: "Somewhere",
state: "CA",
postalCode: "90210",
country: "USA"
},
}
}
})
});
Response
{
"user": {
"tvzr_key": "s9eujs0l",
"username": "johndoe",
"email": "[email protected]",
"profile": {
"tvzr_key": "29d8d7u7",
"name": "John Doe",
"address": {
"tvzr_key": "sis28ds",
"street": "123 Main St",
"city": "Somewhere",
"state": "CA",
"postalCode": "90210",
"country": "USA"
},
}
}
}
Last updated