Skip to main content
PUT
/
v1
/
accounts
/
activities
/
{activityId}
Update an account activity
curl --request PUT \
  --url https://platform.thena.ai/v1/accounts/activities/{activityId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "title": "Meeting with John Doe",
  "description": "Meeting with John Doe",
  "activityTimestamp": "2024-01-01T00:00:00Z",
  "duration": 60,
  "location": "New York, NY",
  "type": "T123",
  "status": "S123",
  "participants": [
    "U123",
    "U124"
  ],
  "attachmentUrls": [
    "https://example.com/attachment1.jpg",
    "https://example.com/attachment2.jpg"
  ],
  "metadata": {}
}'
{
  "id": "<string>",
  "accountId": "<string>",
  "account": "<string>",
  "activityTimestamp": "<string>",
  "duration": 123,
  "location": "<string>",
  "title": "<string>",
  "description": "<string>",
  "type": "<string>",
  "typeId": "<string>",
  "typeConfiguration": {},
  "status": "<string>",
  "statusId": "<string>",
  "statusConfiguration": {},
  "participants": [
    "<string>"
  ],
  "creator": "<string>",
  "creatorId": "<string>",
  "creatorEmail": "<string>",
  "attachments": [
    "<string>"
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "metadata": {}
}

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

activityId
string
required

Body

application/json
title
string

The title of the activity

Example:

"Meeting with John Doe"

description
string

The description of the activity

Example:

"Meeting with John Doe"

activityTimestamp
string

The timestamp of the activity

Example:

"2024-01-01T00:00:00Z"

duration
number

The duration of the activity in minutes

Example:

60

location
string

The location of the activity

Example:

"New York, NY"

type
string

The identifier / value of the Type attribute of the activity

Example:

"T123"

status
string

The identifier / value of the Status attribute of the activity

Example:

"S123"

participants
string[]

The identifiers of the participants of the activity

Example:
["U123", "U124"]
attachmentUrls
string[]

The URLs of the attachments to attach to the note

Example:
[
"https://example.com/attachment1.jpg",
"https://example.com/attachment2.jpg"
]
metadata
object

The metadata of the activity

Example:
{}

Response

Operation successful

id
string
required

The identifier of the activity

accountId
string
required

The identifier of the account

account
string
required

The name of the account

activityTimestamp
string
required

The timestamp of the activity

duration
number
required

The duration of the activity in minutes

location
string
required

The location of the activity

title
string
required

The title of the activity

description
string
required

The description of the activity

type
string
required

The type of the activity

typeId
string
required

The identifier of the type attribute

typeConfiguration
object
required

The configuration of the type attribute

status
string
required

The status of the activity

statusId
string
required

The identifier of the status attribute

statusConfiguration
object
required

The configuration of the status attribute

participants
string[]
required

The participants of the activity

creator
string
required

The creator of the activity

creatorId
string
required

The identifier of the creator

creatorEmail
string
required

The email of the creator

attachments
string[]
required

The attachments of the activity

createdAt
string
required

The creation date of the activity

updatedAt
string
required

The update date of the activity

metadata
object
required

The metadata of the activity

I