API reference
Platform
- Search
- Users
- Teams
- Tickets
- Tags
- Ticket tags
- Accounts
- GETGet all accounts
- POSTCreate an account
- POSTGet accounts by ids
- POSTGet accounts by primary domains
- POSTCreate accounts in bulk
- GETGet account details
- PUTUpdate an account
- DELDelete an account
- GETGet all account relationships
- POSTCreate an account relationship
- PUTUpdate an account relationship
- DELDelete an account relationship
- GETGet all account relationship types
- POSTCreate an account relationship type
- PUTUpdate an account relationship type
- DELDelete an account relationship type
- GETGet all account contacts
- POSTCreate an account contact
- POSTFilter customer contacts by ids
- GETSearch customer contacts
- POSTBulk create account contacts
- PUTUpdate a customer contact
- DELDelete a customer contact
- GETGet custom fields for an account
- GETGets all account attribute values
- POSTCreates an account attribute value
- PUTUpdates an account attribute value
- DELDeletes an account attribute value
- GETFetches all account activities
- POSTCreates an account activity
- PUTUpdates an account activity
- DELDeletes an account activity
- DELRemoves an attachment from an account activity
- GETFetches all account notes by account ID or by note ID
- POSTCreates an account note
- PUTUpdates an account note
- DELDeletes an account note
- DELRemoves an attachment from an account note
- GETFetches all account tasks by account ID or by task ID
- POSTCreates an account task
- PUTUpdates an account task
- DELDeletes an account task
- DELRemoves an attachment from an account task
- POSTIngest users
- GET
- Forms
- Comments
- Emoji actions
- Custom object fields
- Custom objects
- Object records
- Views
- Views types
- Draft tickets
- Storage
- Reactions
Workflows
- Workflows
Apps platform
- App creation
- App installation
- App uninstallation
- App reinstallation
- Incoming webhook
Accounts
Update an account
PUT
/
v1
/
accounts
/
{id}
Copy
Ask AI
curl --request PUT \
--url https://platform.thena.ai/v1/accounts/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"description": "<string>",
"source": "hubspot",
"accountOwnerId": "USER123",
"logo": "https://example.com/logo.png",
"status": "STATUS123",
"classification": "CLASSIFICATION123",
"health": "HEALTH123",
"industry": "INDUSTRY123",
"secondaryDomain": "example.com",
"annualRevenue": 1000000,
"employees": 100,
"website": "https://example.com",
"billingAddress": "123 Main St, Town, State, USA 12345",
"shippingAddress": "123 Main St, Town, State, USA 12345",
"customFieldValues": [
{}
],
"addExistingUsersToAccountContacts": true,
"metadata": {},
"name": "Example",
"primaryDomain": "example.com"
}'
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"source": "hubspot",
"logo": "<string>",
"statusId": "<string>",
"status": "<string>",
"statusConfiguration": {},
"classificationId": "<string>",
"classification": "<string>",
"classificationConfiguration": {},
"healthId": "<string>",
"health": "<string>",
"healthConfiguration": {},
"industryId": "<string>",
"industry": "<string>",
"industryConfiguration": {},
"primaryDomain": "<string>",
"secondaryDomain": "<string>",
"accountOwner": "<string>",
"accountOwnerId": "<string>",
"accountOwnerEmail": "<string>",
"accountOwnerAvatarUrl": "<string>",
"annualRevenue": 123,
"employees": 123,
"website": "<string>",
"billingAddress": "<string>",
"shippingAddress": "<string>",
"customFieldValues": [
"<string>"
],
"metadata": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}
Authorizations
Enter your API key
Path Parameters
Body
application/json
Response
200
application/json
Operation successful
The response is of type object
.
Copy
Ask AI
curl --request PUT \
--url https://platform.thena.ai/v1/accounts/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"description": "<string>",
"source": "hubspot",
"accountOwnerId": "USER123",
"logo": "https://example.com/logo.png",
"status": "STATUS123",
"classification": "CLASSIFICATION123",
"health": "HEALTH123",
"industry": "INDUSTRY123",
"secondaryDomain": "example.com",
"annualRevenue": 1000000,
"employees": 100,
"website": "https://example.com",
"billingAddress": "123 Main St, Town, State, USA 12345",
"shippingAddress": "123 Main St, Town, State, USA 12345",
"customFieldValues": [
{}
],
"addExistingUsersToAccountContacts": true,
"metadata": {},
"name": "Example",
"primaryDomain": "example.com"
}'
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"source": "hubspot",
"logo": "<string>",
"statusId": "<string>",
"status": "<string>",
"statusConfiguration": {},
"classificationId": "<string>",
"classification": "<string>",
"classificationConfiguration": {},
"healthId": "<string>",
"health": "<string>",
"healthConfiguration": {},
"industryId": "<string>",
"industry": "<string>",
"industryConfiguration": {},
"primaryDomain": "<string>",
"secondaryDomain": "<string>",
"accountOwner": "<string>",
"accountOwnerId": "<string>",
"accountOwnerEmail": "<string>",
"accountOwnerAvatarUrl": "<string>",
"annualRevenue": 123,
"employees": 123,
"website": "<string>",
"billingAddress": "<string>",
"shippingAddress": "<string>",
"customFieldValues": [
"<string>"
],
"metadata": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.