API ReferenceOrganizations
Update Organization
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
name?string
Organization name
Length
1 <= length <= 100slug?string
URL-friendly slug
Length
3 <= length <= 50billingEmail?string
Billing contact email
Format
emailcountryCode?string
ISO 3166-1 alpha-2 country code
Length
2 <= length <= 2currency?string
ISO 4217 currency code
Length
3 <= length <= 3timezone?string
IANA timezone
logo?string
Logo URL
Format
uriisActive?boolean
Whether organization is active
metadata?
Custom metadata
Response Body
application/json
curl -X PATCH "https://samva.app/api/v1/organizations/current" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"name": "string",
"slug": "string",
"logo": "string",
"stripeCustomerId": "string",
"defaultCurrency": "string",
"countryCode": "string",
"timezone": "string",
"billingEmail": "string",
"plan": "string",
"isActive": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"metadata": {
"property1": null,
"property2": null
},
"messagesUsed": 9007199254740991,
"messagesUsedThisMonth": 9007199254740991,
"smsUsed": 9007199254740991,
"smsUsedThisMonth": 9007199254740991,
"whatsappUsed": 9007199254740991,
"whatsappUsedThisMonth": 9007199254740991,
"emailUsed": 9007199254740991,
"emailUsedThisMonth": 9007199254740991,
"participantsUsed": 9007199254740991,
"conversationsUsed": 9007199254740991,
"teamMembersUsed": 9007199254740991,
"messagesResetAt": "2019-08-24T14:15:22Z"
}