Determine the outbox url from the actor’s profile
Post a new Activity
curl --location --request POST 'localhost:8081/actor/rdf-pub-admin/outbox' \ --header 'Accept: application/ld+json' \ --header 'Content-Type: application/ld+json' \ --header 'Authorization: Bearer ***' \ --data-raw '{ "@context":[ "https://schema.org/docs/jsonldcontext.json", "https://www.w3.org/ns/activitystreams" ], "type":"Create", "version":1, "identifier":"1209-sdfje-1835-4444", "id":"https://social.example/alyssa/posts/a29a6843-9feb-4c74-a7f7-081b9c9201d3", "to":[ "https://chatty.example/ben/" ], "actor":"http://localhost:8081/actor/38ce660b-f8a3-4425-bb19-1fbcaef461f2/", "object":{ "type":"Note", "id":"https://social.example/alyssa/posts/49e2d03d-b53a-4c4c-a95c-94a6abf45a19", "version":1, "identifier":"1209-sdfje-1835-j38s", "attributedTo":"https://social.example/alyssa/", "to":[ "https://chatty.example/ben/" ], "content":"Say, did you finish reading that book I lent you?" } }'
You should get an HTTP 201 CREATED
Response with a Location
Header attribute containing the IRI of the created activity.