This is one of many protocol behaviors described in ActivityPub.

Identifier

urn:uuid:3b925cdf-89fe-4f51-b41f-26df23f58e0c

Content

Servers MUST return a 201 Created HTTP code

Origin

prefix If an Activity is submitted with a value in the id property, servers MUST ignore this and generate a new id for the Activity.

Servers MUST return a 201 Created HTTP code
 
suffix , and unless the activity is transient, MUST include the new id in the Location header.

https://www.w3.org/TR/activitypub/

JSON

{
  "id": "urn:uuid:3b925cdf-89fe-4f51-b41f-26df23f58e0c",
  "type": "Behavior",
  "uuid": "3b925cdf-89fe-4f51-b41f-26df23f58e0c",
  "content": "Servers MUST return a 201 Created HTTP code\n",
  "context": [
    "https://www.w3.org/TR/activitypub/",
    {
      "name": "Client to server interaction"
    },
    {
      "name": "server responding to client posting Activities to an actor's outbox"
    }
  ],
  "origin": {
    "source": "https://www.w3.org/TR/activitypub/",
    "section": {
      "id": "https://www.w3.org/TR/activitypub/#x6-client-to-server-interactions",
      "branch": [
        6
      ]
    },
    "selector": {
      "type": "TextQuoteSelector",
      "prefix": "If an Activity is submitted with a value in the id property, servers MUST ignore this and generate a new id for the Activity. \n",
      "exact": "Servers MUST return a 201 Created HTTP code\n",
      "suffix": ", and unless the activity is transient, MUST include the new id in the Location header.\n"
    }
  },
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://socialweb.coop/ns/testing/context.json"
  ]
}