curl --request PUT \
--url https://api.stardex.ai/v0/person-activities/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"activity_content": "This is a simple text update",
"content_type": "text"
}
'{
"error": null,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"updated_at": "2024-03-15T12:00:00Z"
}
}{
"error": "Invalid content format",
"data": null
}{
"error": "Activity not found",
"data": null
}{
"error": "Internal server error",
"data": null
}Person Activity Endpoints
Update a person activity
Updates the content of an existing person activity. Supports both plain text and HTML content formats.
- For plain text, the content will be wrapped in a paragraph structure
- For HTML, the content will be parsed and converted to the appropriate format while preserving formatting
The activity must belong to the authenticated organization and team.
PUT
/
v0
/
person-activities
/
{id}
curl --request PUT \
--url https://api.stardex.ai/v0/person-activities/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"activity_content": "This is a simple text update",
"content_type": "text"
}
'{
"error": null,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"updated_at": "2024-03-15T12:00:00Z"
}
}{
"error": "Invalid content format",
"data": null
}{
"error": "Activity not found",
"data": null
}{
"error": "Internal server error",
"data": null
}Authorizations
Authenticate with a Bearer token: API key, OAuth token, or session token.
Path Parameters
The unique identifier of the activity to update
Body
application/json
Content to update the activity with. Can be plain text or HTML depending on content_type
Examples:
"This is plain text content"
"<p>This is <strong>HTML</strong> content</p>"
Specifies the format of the provided content. Use "text" for plain text or "html" for HTML formatted content
Available options:
text, html Example:
"text"
Was this page helpful?