Skip to content

Necessary properties for polls

Example 1: without attributedTo

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/lbuEiktP2Pbkdys7",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-12T10:53:32.725285Z",
    "id": "http://host.test/objects/bCJgZPSodNndJOKf",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-08T07:53:32Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-08T07:53:32.725293Z"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "cc": [],
  "content": "<p>Question</p>",
  "endTime": "2026-04-12T10:53:32.725285Z",
  "id": "http://host.test/objects/bCJgZPSodNndJOKf",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-08T07:53:32.725293Z"
}

Example 2: without cc

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/aw3jU0PgCjnCi-4J",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "content": "<p>Question</p>",
    "endTime": "2026-04-12T10:53:32.725401Z",
    "id": "http://host.test/objects/J7DmfblSxJB_Kj34",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-08T07:53:32Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-08T07:53:32.725407Z"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "attributedTo": "http://host.test/some/actor",
  "content": "<p>Question</p>",
  "endTime": "2026-04-12T10:53:32.725401Z",
  "id": "http://host.test/objects/J7DmfblSxJB_Kj34",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-08T07:53:32.725407Z"
}

Example 3: without type

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/GacTLq6PGu2PDzvz",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-12T10:53:32.725509Z",
    "id": "http://host.test/objects/1HiN51FmviVJ01p2",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-08T07:53:32Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "updated": "2026-04-08T07:53:32.725515Z"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "attributedTo": "http://host.test/some/actor",
  "cc": [],
  "content": "<p>Question</p>",
  "endTime": "2026-04-12T10:53:32.725509Z",
  "id": "http://host.test/objects/1HiN51FmviVJ01p2",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "updated": "2026-04-08T07:53:32.725515Z"
}

Example 4: without published

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/9AGLHOuMyDcbLyez",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-12T10:53:32.725615Z",
    "id": "http://host.test/objects/rwTfDsYbNdJho7cW",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-08T07:53:32.725621Z"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "attributedTo": "http://host.test/some/actor",
  "cc": [],
  "content": "<p>Question</p>",
  "endTime": "2026-04-12T10:53:32.725615Z",
  "id": "http://host.test/objects/rwTfDsYbNdJho7cW",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-08T07:53:32.725621Z"
}

Example 5: without content

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/lTZEAmjK8oxRV7_2",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "endTime": "2026-04-12T10:53:32.725720Z",
    "id": "http://host.test/objects/qKRplGdytGRbA-l-",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-08T07:53:32Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-08T07:53:32.725726Z"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "attributedTo": "http://host.test/some/actor",
  "cc": [],
  "endTime": "2026-04-12T10:53:32.725720Z",
  "id": "http://host.test/objects/qKRplGdytGRbA-l-",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-08T07:53:32.725726Z"
}

Example 6: without endTime

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/E0UV7_qHAKckV-cg",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "id": "http://host.test/objects/GKbT0d2KnwwN6iru",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-08T07:53:32Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-08T07:53:32.725831Z"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "attributedTo": "http://host.test/some/actor",
  "cc": [],
  "content": "<p>Question</p>",
  "id": "http://host.test/objects/GKbT0d2KnwwN6iru",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-08T07:53:32.725831Z"
}

Example 7: without oneOf

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/FSPvSoqg4vV1iN6m",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-12T10:53:32.725929Z",
    "id": "http://host.test/objects/9LQfiBIw9nXmzer0",
    "published": "2026-04-08T07:53:32Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-08T07:53:32.725935Z"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "attributedTo": "http://host.test/some/actor",
  "cc": [],
  "content": "<p>Question</p>",
  "endTime": "2026-04-12T10:53:32.725929Z",
  "id": "http://host.test/objects/9LQfiBIw9nXmzer0",
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-08T07:53:32.725935Z"
}

Example 8: without updated

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/PNwkaWaUpubKpDBw",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-12T10:53:32.726016Z",
    "id": "http://host.test/objects/KS8_LEDcXPDKR8o8",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-08T07:53:32Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question"
  },
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Create"
}
Object
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "attributedTo": "http://host.test/some/actor",
  "cc": [],
  "content": "<p>Question</p>",
  "endTime": "2026-04-12T10:53:32.726016Z",
  "id": "http://host.test/objects/KS8_LEDcXPDKR8o8",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-08T07:53:32Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question"
}