# Create Activity (Object or Objects)

**URL:** <https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470>\
**Category:** ActivityPub\
**Created:** [February 25, 2021, 5:27pm UTC](https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470 "2021-02-25T17:27:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [February 25, 2021, 5:27pm UTC](https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470/1 "2021-02-25T17:27:47Z")

</div>

Hello all,  
I am wondering in relation to the ActivityPub specification specifically on C2s, but is more general.

When I create an activity, I actually create an object. And does the specification specify that this object should be exactly ONE object? Or can it be an object that links other objects?

I add an example (without surrounding activity!)

```
@prefix output-file: <http://www.w3.org/ns/person#> .
@prefix schema: <http://schema.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix SLR: <http://xxxxxxxxxxx/ns/slr#> .
@prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/rootObjectToAdd> a SLR:CreateActor;
  <http://www.w3.org/2005/01/wf/flow#assignee> <http://localhost:8082/actors/4c207e4d-4b66-4a38-afa9-ec626a9f7a51>;
  as:object <http://example.com/actors/33333333>;
  as:to <http://localhost:8082/actors/4d055143-83c7-423e-bf5e-312e4443f467> .

<http://example.com/actors/33333333> a as:Object;
  as:name "33333333" .

```

And how does the C2S create activity has to handle that? Just create the Object `http://example.com/rootObjectToAdd` and ignore `http://example.com/actors/33333333` or save both objects.

Fredy

 ![sample](https://socialhub.activitypub.rocks/uploads/default/original/1X/0522712f5e0aa545dc4676d7bb711c915535df7e.png)

---

<div class="post-metadata">

**Author:** ![Sebastian](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/sebastian/32/38_2.png) [@Sebastian](https://socialhub.activitypub.rocks/u/Sebastian)\
**Post date:** [February 26, 2021, 9:08am UTC](https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470/2 "2021-02-26T09:08:20Z")

</div>

I have similar questions (e.g. what if I create a [Collection](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collection)) and it has Objects which are not created yet …

It seems a rarely happening very short Social CG makes little sense.  
There are so many C2S questions and we decided to have a hackathon about that.  
Is now the time?

> [@Implementing ActivityPub Client-to-Server](https://socialhub.activitypub.rocks/t/implementing-activitypub-client-to-server/981/12):
>
> Do we do this and when?

---

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [April 6, 2021, 9:17am UTC](https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470/3 "2021-04-06T09:17:12Z")

</div>

> [@Sebastian](#):
>
> It seems a rarely happening very short Social CG makes little sense.  
> There are so many C2S questions and we decided to have a hackathon about that.  
> Is now the time?

are all these questions summarized somewhere?

---

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [April 6, 2021, 10:18am UTC](https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470/4 "2021-04-06T10:18:17Z")

</div>

> [@Sebastian](#):
>
> hackathon

i’m not so convinced about hackathons and can’t imagine how a hackathon is supposed to clarify questions that arise during implementation.

---

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [April 6, 2021, 2:35pm UTC](https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470/5 "2021-04-06T14:35:49Z")

</div>

currently i read [6.3 partial-updates](https://www.w3.org/TR/activitypub/#partial-updates)

> This only applies to the top-level fields of the updated object.

I understand that like “an object can have sub-objects” as in my example above.  
But that doesn’t make it clearer, rather the opposite.

Fredy

---

<div class="post-metadata">

**Author:** ![naturzukunft](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/naturzukunft/32/983_2.png) [@naturzukunft](https://socialhub.activitypub.rocks/u/naturzukunft)\
**Post date:** [April 14, 2021, 2:02pm UTC](https://socialhub.activitypub.rocks/t/create-activity-object-or-objects/1470/6 "2021-04-14T14:02:13Z")

</div>

I wonder if there should not be a connection between activities.  
Suppose a client app creates an activity in Leo’s outbox.  
The server delivers this activity to the receivers and in the receivers inbox there is (more or less) a “copy” of the activity with a new id.  
I have the need to link the activities with the `attributedTo` property.

```
ns2:activity237 as:attributedTo ns1:activity249
ns1:activity249 as:attributedTo ns2:activity237

```

Is there anything in your opinion for or against this?
