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/9sKVcRnteBJALsJ-",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-18T10:48:43.260696Z",
    "id": "http://host.test/objects/Cic1HcrOitl4i83n",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-14T07:48:43Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-14T07:48:43.260707Z"
  },
  "published": "2026-04-14T07:48:43Z",
  "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-18T10:48:43.260696Z",
  "id": "http://host.test/objects/Cic1HcrOitl4i83n",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-14T07:48:43Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-14T07:48:43.260707Z"
}

Example 2: without cc

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/pj3VwkI1z9upYgn-",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "content": "<p>Question</p>",
    "endTime": "2026-04-18T10:48:43.260844Z",
    "id": "http://host.test/objects/HMHv5ING8QrrUfvm",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-14T07:48:43Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-14T07:48:43.260852Z"
  },
  "published": "2026-04-14T07:48:43Z",
  "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-18T10:48:43.260844Z",
  "id": "http://host.test/objects/HMHv5ING8QrrUfvm",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-14T07:48:43Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-14T07:48:43.260852Z"
}

Example 3: without type

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/V1j7quiLEAy60mwk",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-18T10:48:43.260980Z",
    "id": "http://host.test/objects/wP2PPtHrmQ5VabIs",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-14T07:48:43Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "updated": "2026-04-14T07:48:43.260988Z"
  },
  "published": "2026-04-14T07:48:43Z",
  "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-18T10:48:43.260980Z",
  "id": "http://host.test/objects/wP2PPtHrmQ5VabIs",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-14T07:48:43Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "updated": "2026-04-14T07:48:43.260988Z"
}

Example 4: without published

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/-dZFsd1gq9n4XlXS",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-18T10:48:43.261114Z",
    "id": "http://host.test/objects/aLdPbr-y2zzaaPjK",
    "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-14T07:48:43.261121Z"
  },
  "published": "2026-04-14T07:48:43Z",
  "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-18T10:48:43.261114Z",
  "id": "http://host.test/objects/aLdPbr-y2zzaaPjK",
  "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-14T07:48:43.261121Z"
}

Example 5: without content

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/m7MjuIASkqpszE7L",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "endTime": "2026-04-18T10:48:43.261253Z",
    "id": "http://host.test/objects/y-lhOMQCUxlzh8k7",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-14T07:48:43Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-14T07:48:43.261260Z"
  },
  "published": "2026-04-14T07:48:43Z",
  "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-18T10:48:43.261253Z",
  "id": "http://host.test/objects/y-lhOMQCUxlzh8k7",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-14T07:48:43Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-14T07:48:43.261260Z"
}

Example 6: without endTime

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/G_1D15ScCutd_8YR",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "id": "http://host.test/objects/cwEyQCpamDntjMuu",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-14T07:48:43Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-14T07:48:43.261402Z"
  },
  "published": "2026-04-14T07:48:43Z",
  "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/cwEyQCpamDntjMuu",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-14T07:48:43Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-14T07:48:43.261402Z"
}

Example 7: without oneOf

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/Lzcb19yf9ZNGWHpf",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-18T10:48:43.261536Z",
    "id": "http://host.test/objects/6NWuTmz7DwRSPJ0m",
    "published": "2026-04-14T07:48:43Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question",
    "updated": "2026-04-14T07:48:43.261543Z"
  },
  "published": "2026-04-14T07:48:43Z",
  "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-18T10:48:43.261536Z",
  "id": "http://host.test/objects/6NWuTmz7DwRSPJ0m",
  "published": "2026-04-14T07:48:43Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question",
  "updated": "2026-04-14T07:48:43.261543Z"
}

Example 8: without updated

Activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "actor": "http://host.test/some/actor",
  "cc": [],
  "id": "http://host.test/activities/KV9fg6Bs6_CBoE4q",
  "object": {
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "attributedTo": "http://host.test/some/actor",
    "cc": [],
    "content": "<p>Question</p>",
    "endTime": "2026-04-18T10:48:43.261644Z",
    "id": "http://host.test/objects/MONDxH4JLwb5vyh6",
    "oneOf": [
      {
        "name": "Answer 1",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      },
      {
        "name": "Answer 2",
        "replies": {
          "totalItems": 0,
          "type": "Collection"
        },
        "type": "Note"
      }
    ],
    "published": "2026-04-14T07:48:43Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://other.test/some/actor"
    ],
    "type": "Question"
  },
  "published": "2026-04-14T07:48:43Z",
  "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-18T10:48:43.261644Z",
  "id": "http://host.test/objects/MONDxH4JLwb5vyh6",
  "oneOf": [
    {
      "name": "Answer 1",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    },
    {
      "name": "Answer 2",
      "replies": {
        "totalItems": 0,
        "type": "Collection"
      },
      "type": "Note"
    }
  ],
  "published": "2026-04-14T07:48:43Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://other.test/some/actor"
  ],
  "type": "Question"
}