Activity Stream Type: Note

Activity Vocabulary: Note

PropertyBase SpecRequiredDescriptionRestrictions
@contextActivity Streams 2.0YESJSON-LD @contextMUST be set to https://www.w3.org/ns/activitystreams
typeActivity Vocabulary 2.0YESIdentifies the type of the objectMUST be set to Note
contentActivity Vocabulary 2.0YESText content of the note
mediaTypeActivity Vocabulary 2.0YESMIME type for the content fieldMUST be set to a supported MIME type
publishedActivity Vocabulary 2.0YESThe time of publishingMUST be ISO8601
nameActivity Vocabulary 2.0noThe display name for the note
attachmentActivity Vocabulary 2.0noArray of attached links or mediaMUST be one of the Supported Attachments
tagActivity Vocabulary 2.0noArray of tags/mentionsMUST follow Tag Type
locationActivity Vocabulary 2.0noFor locationMUST follow Location Type

Supported Content MIME Types

FormatMIME TypeSpecification(s)
Plaintext/plain

Examples

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Note",
  "content": "Hello world!",
  "mediaType": "text/plain",
  "published": "1970-01-01T00:00:00+00:00"
}
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Note",
  "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
  "mediaType": "text/plain",
  "attachment": [
    {
      "type": "Link",
      "href": "https://en.wikipedia.org/wiki/Citation_needed"
    }
  ],
  "published": "1970-01-01T00:00:00+00:00"
}