Skip to content

Update organization profile

PATCH
/api/v1/organization/
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.

Media typeapplication/json
OrganizationUpdateRequest

Organization profile fields STERLING may update with user approval.

object
name
Any of:
string
>= 1 characters <= 255 characters
contact_email
Any of:
string format: email
contact_phone
Any of:
string
<= 20 characters
address_line1
Any of:
string
<= 255 characters
address_line2
Any of:
string
<= 255 characters
city
Any of:
string
<= 100 characters
state
Any of:
string
<= 50 characters
postal_code
Any of:
string
<= 20 characters
country
Any of:
string
<= 100 characters
timezone
Any of:
string
<= 50 characters

Example generated

{
"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"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}