Update organization profile
PATCH
/api/v1/organization/
const url = 'https://app.ayna.com/api/v1/organization/';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","contact_email":"[email protected]","contact_phone":"example","address_line1":"example","address_line2":"example","city":"example","state":"example","postal_code":"example","country":"example","timezone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.ayna.com/api/v1/organization/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "contact_email": "[email protected]", "contact_phone": "example", "address_line1": "example", "address_line2": "example", "city": "example", "state": "example", "postal_code": "example", "country": "example", "timezone": "example" }'Update the authenticated tenant’s company profile.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
OrganizationUpdateRequest
Organization profile fields STERLING may update with user approval.
object
Example generated
{ "name": "example", "contact_phone": "example", "address_line1": "example", "address_line2": "example", "city": "example", "state": "example", "postal_code": "example", "country": "example", "timezone": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}