Organizations
Update organization
PATCH
/
v1
/
organization
Update organization
curl --request PATCH \
--url https://api.wazapin.com/v1/organization \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"default_currency": "<string>",
"home_currency": "<string>",
"locale": "<string>",
"logo": "<string>",
"timezone": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
default_currency: '<string>',
home_currency: '<string>',
locale: '<string>',
logo: '<string>',
timezone: '<string>'
})
};
fetch('https://api.wazapin.com/v1/organization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/organization"
payload = {
"name": "<string>",
"default_currency": "<string>",
"home_currency": "<string>",
"locale": "<string>",
"logo": "<string>",
"timezone": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"created_at": "<string>",
"default_currency": "<string>",
"home_currency": "<string>",
"id": "<string>",
"locale": "<string>",
"logo": "<string>",
"name": "<string>",
"slug": "<string>",
"timezone": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Organization name
Minimum string length:
1Tenant default display currency (ISO 4217 code, e.g. IDR, USD, EUR)
ISO 4217 currency code used for rollup (defaults to USD if empty)
Tenant display locale (BCP-47 tag, e.g. id-ID, en-US, fr-FR)
Logo URL
IANA timezone for tenant-local date/time display
⌘I
Update organization
curl --request PATCH \
--url https://api.wazapin.com/v1/organization \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"default_currency": "<string>",
"home_currency": "<string>",
"locale": "<string>",
"logo": "<string>",
"timezone": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
default_currency: '<string>',
home_currency: '<string>',
locale: '<string>',
logo: '<string>',
timezone: '<string>'
})
};
fetch('https://api.wazapin.com/v1/organization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/organization"
payload = {
"name": "<string>",
"default_currency": "<string>",
"home_currency": "<string>",
"locale": "<string>",
"logo": "<string>",
"timezone": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"created_at": "<string>",
"default_currency": "<string>",
"home_currency": "<string>",
"id": "<string>",
"locale": "<string>",
"logo": "<string>",
"name": "<string>",
"slug": "<string>",
"timezone": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}