Last updated
{ // Request Object
"target": "did:zion:123",// Community DID
"messages": [ // Message Objects
{
"data": {
"image": "...",
"text": "Some stuff I ate for lunch",
...
}, // Base64URL String Representation of this object
"descriptor": {
"nonce": "9b9c7f1fcabfc471ee2682890b58a427ba2c8db59ddf3c2d5ad16ccc84bb3106",
"method": "CollectionsWrite",
"recordId": "b6464162-84af-4aab-aff5-f1f8438dfc1e", // the record ID you are creating
"dataCid": "", //CID V1 of the data field
"dataFormat": "application/json",
"dateCreated": 123456789,
"schema": "https://schema.org/SocialMediaPosting", // Can be a key for a hardcoded custom ZION schema
"protocol": "zion.fyi/social-protocol/v1"
},
"attestation": {
"protected": {
"alg": "ES256K",
"kid": "did:example:123#key-1"
},
"payload": "", // CID V1 of the descriptor,
"signature": "" //JWS of (protected + payload)
} // JWS Compact Object string
},
]
}{ // Request Object
"target": "did:zion:123",// Community DID
"messages": [ // Message Objects
{
"data": {
"image": "...",
"text": "Some stuff I ate for lunch, and a snack",
...
}, // Base64URL String Representation of this object
"descriptor": {
"nonce": "9b9c7f1fcabfc471ee2682890b58a427ba2c8db59ddf3c2d5ad16ccc84bb3106",
"method": "CollectionsCommit",
"recordId": "b6464162-84af-4aab-aff5-f1f8438dfc1e", // ID for the record looking to update
"dataCid": "", //CID V1 of the data field
"dataFormat": "application/json",
"dateCreated": 123456789, // Should be the time of the original creation
"datePublished": 123456789, // Should be now
"schema": "https://schema.org/SocialMediaPosting", // Can be a key for a hardcoded custom ZION schema
"protocol": "zion.fyi/social-protocol/v1"
},
"attestation": {
"protected": {
"alg": "ES256K",
"kid": "did:example:123#key-1"
},
"payload": "", // CID V1 of the descriptor,
"signature": "" //JWS of (protected + payload)
} // JWS Compact Object string
},
]
}{ // Request Object
"target": "did:zion:123",// Community DID
"messages": [ // Message Objects
{
"descriptor": {
"nonce": "9b9c7f1fcabfc471ee2682890b58a427ba2c8db59ddf3c2d5ad16ccc84bb3106",
"method": "CollectionsDelete",
"recordId": "b6464162-84af-4aab-aff5-f1f8438dfc1e", // the record for deletion
"schema": "https://schema.org/SocialMediaPosting", // Can be a key for a hardcoded custom ZION schema
"protocol": "zion.fyi/social-protocol/v1"
},
"attestation": {
"protected": {
"alg": "ES256K",
"kid": "did:example:123#key-1"
},
"payload": "", // CID V1 of the descriptor,
"signature": "" //JWS of (protected + payload)
} // JWS Compact Object string
},
]
}