Updates a new property value
given: "Alice" created an actor on "abel" called "Alice"
send.Alice.request.create_actor
{
"base_url": "http://abel",
"preferred_username": "Alice",
"profile": {},
"automatically_accept_followers": null,
"name": null
}
receive.Alice.response.create_actor
{
"attachment": null,
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1"
],
"publicKey": {
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ#legacy-key-1",
"owner": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2XtJogZtSQ4aL1SXu5M\nx55ZwkF57Bk4UkXY+qKI/AwqxKQVJhs9lBGzgBeDIlYBQ7c5hUkja2ndKYxabfXp\nizv73Eag1LhklKEU81hQN7v04ZTIX1GWKLGwJYUy0LS2h74rmk3vbcde8QjAFEld\n59U18TOyc6QirFO22LlANc4x2eiGabFKXW5UG0cZ3DIbuBS1AhTGLwH3ZRh7ZqrU\nh9qV5yweBwJuUWKHIM9nvr82ZiEaP6V0Pl1RKat45LRVrdhcrunE3T83O4MiXtfe\njf2Zxf6L6byGtehXR9Khh9atEiGvIuGGLuh3dkM0iVIM04oGefx0YsdCwZw5K/mg\nlQIDAQAB\n-----END PUBLIC KEY-----\n"
},
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"type": "Person",
"inbox": "http://abel/inbox/9pGJHZmkLStbC-v3HMBQ8w",
"outbox": "http://abel/outbox/Hm-NsfJUymSAWO-inhJrhQ",
"followers": "http://abel/followers/68W8mvkya1rsF1VsjcA73g",
"following": "http://abel/following/p6w1NcWeo_Z1l70FfB514w",
"preferredUsername": "Alice",
"name": "Alice",
"identifiers": [
"acct:Alice@abel",
"http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ"
],
"endpoints": {
"sharedInbox": "http://abel/shared_inbox"
}
}
given: "Alice" has the PropertyValue "secure" with value "yes"
send.Alice.trigger.update_actor
{
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"actions": [
{
"action": "update_property_value",
"key": "secure",
"value": "yes"
}
]
}
receive.Alice.outgoing
{
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"event_type": "outgoing",
"data": {
"raw": {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Update",
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"http://abel/followers/68W8mvkya1rsF1VsjcA73g"
],
"published": "2025-02-23T08:45:47Z",
"object": {
"attachment": [
{
"name": "secure",
"type": "PropertyValue",
"value": "yes"
}
],
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"PropertyValue": {
"@id": "https://schema.org/PropertyValue",
"@context": {
"value": "https://schema.org/value",
"name": "https://schema.org/name"
}
}
}
],
"publicKey": {
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ#legacy-key-1",
"owner": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2XtJogZtSQ4aL1SXu5M\nx55ZwkF57Bk4UkXY+qKI/AwqxKQVJhs9lBGzgBeDIlYBQ7c5hUkja2ndKYxabfXp\nizv73Eag1LhklKEU81hQN7v04ZTIX1GWKLGwJYUy0LS2h74rmk3vbcde8QjAFEld\n59U18TOyc6QirFO22LlANc4x2eiGabFKXW5UG0cZ3DIbuBS1AhTGLwH3ZRh7ZqrU\nh9qV5yweBwJuUWKHIM9nvr82ZiEaP6V0Pl1RKat45LRVrdhcrunE3T83O4MiXtfe\njf2Zxf6L6byGtehXR9Khh9atEiGvIuGGLuh3dkM0iVIM04oGefx0YsdCwZw5K/mg\nlQIDAQAB\n-----END PUBLIC KEY-----\n"
},
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"type": "Person",
"inbox": "http://abel/inbox/9pGJHZmkLStbC-v3HMBQ8w",
"outbox": "http://abel/outbox/Hm-NsfJUymSAWO-inhJrhQ",
"followers": "http://abel/followers/68W8mvkya1rsF1VsjcA73g",
"following": "http://abel/following/p6w1NcWeo_Z1l70FfB514w",
"preferredUsername": "Alice",
"name": "Alice",
"identifiers": [
"acct:Alice@abel",
"http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ"
],
"endpoints": {
"sharedInbox": "http://abel/shared_inbox"
}
},
"id": "http://abel/object/019531fb-e8ff-7966-bb31-6e1fbb4f3d18"
},
"recipients": {
"recipients": [
"https://www.w3.org/ns/activitystreams#Public",
"http://abel/followers/68W8mvkya1rsF1VsjcA73g"
],
"public": true
}
}
}
when: "Alice" updates the PropertyValue "secure" with value "no"
send.Alice.trigger.update_actor
{
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"actions": [
{
"action": "update_property_value",
"key": "secure",
"value": "no"
}
]
}
receive.Alice.outgoing
{
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"event_type": "outgoing",
"data": {
"raw": {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Update",
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"http://abel/followers/68W8mvkya1rsF1VsjcA73g"
],
"published": "2025-02-23T08:45:48Z",
"object": {
"attachment": [
{
"name": "secure",
"type": "PropertyValue",
"value": "no"
}
],
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"PropertyValue": {
"@id": "https://schema.org/PropertyValue",
"@context": {
"value": "https://schema.org/value",
"name": "https://schema.org/name"
}
}
}
],
"publicKey": {
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ#legacy-key-1",
"owner": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2XtJogZtSQ4aL1SXu5M\nx55ZwkF57Bk4UkXY+qKI/AwqxKQVJhs9lBGzgBeDIlYBQ7c5hUkja2ndKYxabfXp\nizv73Eag1LhklKEU81hQN7v04ZTIX1GWKLGwJYUy0LS2h74rmk3vbcde8QjAFEld\n59U18TOyc6QirFO22LlANc4x2eiGabFKXW5UG0cZ3DIbuBS1AhTGLwH3ZRh7ZqrU\nh9qV5yweBwJuUWKHIM9nvr82ZiEaP6V0Pl1RKat45LRVrdhcrunE3T83O4MiXtfe\njf2Zxf6L6byGtehXR9Khh9atEiGvIuGGLuh3dkM0iVIM04oGefx0YsdCwZw5K/mg\nlQIDAQAB\n-----END PUBLIC KEY-----\n"
},
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"type": "Person",
"inbox": "http://abel/inbox/9pGJHZmkLStbC-v3HMBQ8w",
"outbox": "http://abel/outbox/Hm-NsfJUymSAWO-inhJrhQ",
"followers": "http://abel/followers/68W8mvkya1rsF1VsjcA73g",
"following": "http://abel/following/p6w1NcWeo_Z1l70FfB514w",
"preferredUsername": "Alice",
"name": "Alice",
"identifiers": [
"acct:Alice@abel",
"http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ"
],
"endpoints": {
"sharedInbox": "http://abel/shared_inbox"
}
},
"id": "http://abel/object/019531fb-ea77-75d0-bb0a-fe754596787c"
},
"recipients": {
"recipients": [
"https://www.w3.org/ns/activitystreams#Public",
"http://abel/followers/68W8mvkya1rsF1VsjcA73g"
],
"public": true
}
}
}
when: "Alice" retrieves the object with the actor id of "Alice"
send.Alice.request.fetch
{
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"uri": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ"
}
receive.Alice.response.fetch
{
"actor": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"uri": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"data": {
"attachment": [
{
"name": "secure",
"type": "PropertyValue",
"value": "no"
}
],
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"PropertyValue": {
"@id": "https://schema.org/PropertyValue",
"@context": {
"value": "https://schema.org/value",
"name": "https://schema.org/name"
}
}
}
],
"publicKey": {
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ#legacy-key-1",
"owner": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2XtJogZtSQ4aL1SXu5M\nx55ZwkF57Bk4UkXY+qKI/AwqxKQVJhs9lBGzgBeDIlYBQ7c5hUkja2ndKYxabfXp\nizv73Eag1LhklKEU81hQN7v04ZTIX1GWKLGwJYUy0LS2h74rmk3vbcde8QjAFEld\n59U18TOyc6QirFO22LlANc4x2eiGabFKXW5UG0cZ3DIbuBS1AhTGLwH3ZRh7ZqrU\nh9qV5yweBwJuUWKHIM9nvr82ZiEaP6V0Pl1RKat45LRVrdhcrunE3T83O4MiXtfe\njf2Zxf6L6byGtehXR9Khh9atEiGvIuGGLuh3dkM0iVIM04oGefx0YsdCwZw5K/mg\nlQIDAQAB\n-----END PUBLIC KEY-----\n"
},
"id": "http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ",
"type": "Person",
"inbox": "http://abel/inbox/9pGJHZmkLStbC-v3HMBQ8w",
"outbox": "http://abel/outbox/Hm-NsfJUymSAWO-inhJrhQ",
"followers": "http://abel/followers/68W8mvkya1rsF1VsjcA73g",
"following": "http://abel/following/p6w1NcWeo_Z1l70FfB514w",
"preferredUsername": "Alice",
"name": "Alice",
"identifiers": [
"acct:Alice@abel",
"http://abel/actor/cMC7r7urOJvZa4Sn5s_gjQ"
],
"endpoints": {
"sharedInbox": "http://abel/shared_inbox"
}
}
}