PUT
/
v1
/
accounts
/
notes
/
{noteId}
curl --request PUT \
  --url https://platform.thena.ai/v1/accounts/notes/{noteId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "content": "This is a note",
  "type": "T123",
  "visibility": "private",
  "attachmentUrls": [
    "https://example.com/attachment1.jpg",
    "https://example.com/attachment2.jpg"
  ]
}'
{
  "id": "<string>",
  "accountId": "<string>",
  "account": "<string>",
  "content": "<string>",
  "type": "<string>",
  "typeId": "<string>",
  "typeConfiguration": {},
  "visibility": "<string>",
  "attachments": [
    "<string>"
  ],
  "author": "<string>",
  "authorId": "<string>",
  "authorEmail": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

noteId
string
required

Body

application/json
content
string

The content of the note

Example:

"This is a note"

type
string

The identifier / value of the type attribute of the note

Example:

"T123"

visibility
string

The visibility of the note

Example:

"private"

attachmentUrls
string[]

The URLs of the attachments to attach to the note

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

Response

200
application/json
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

content
string
required

The content of the note

type
string
required

The type of the note

typeId
string
required

The identifier of the type attribute

typeConfiguration
object
required

The configuration of the type

visibility
string
required

The visibility of the note

attachments
string[]
required

The attachments of the note

author
string
required

The name of the author

authorId
string
required

The identifier of the author

authorEmail
string
required

The email of the author

createdAt
string
required

The timestamp of the note

updatedAt
string
required

The last updated timestamp of the note