CreateData

Upload Data to a supported web3 storage provider

Description

This mutation will upload data into a specified web3 storage provider. There is no support for data encryption at this time.

Due to the public nature of decentralized storage protocols, users should NOT store any private or sensitive information in an unencrypted form or data that may need to be permanently deleted in the future using the Storedat API

Arguments

Response Details

Request Headers

Sample Mutation

mutation {
  CreateData(
    groupId: "your-group-id-here"
    provider: ARWEAVE
    content: {
      contentType: JSON
      data: "{'perma': 'storedat'}"
      metadata: [
        { name: "key1", value: "value1" }
        { name: "key2", value: "value2" }
      ]
    }
  ) {
    operation
    providerId
    groupId
    url
    statusCode
    errorMessage
  }
}

Sample Response

{
  "data": {
    "GetData": [
      {
        "data": "{'perma': 'storedat'}",
        "providerId": "0pyv5KdH0MV1IhxXFRq7oiQkglslEIH1NrpNcFdAbv4",
        "url": "https://www.arweave.net/0pyv5KdH0MV1IhxXFRq7oiQkglslEIH1NrpNcFdAbv4",
        "creationTimestamp": "2022-12-09T05:54:22.575141+00:00",
        "metadata": [
          {
            "name": "key1",
            "value": "value1"
          },
          {
            "name": "key2",
            "value": "value2"
          }
        ],
        "provider": "ARWEAVE"
      }
    ]
  }
}

Last updated