UpdateData

Update previously uploaded data stored through Storedat

Description

This mutation will update a single piece of previously uploaded data through Storedat; however, this operation will not actually update the previously stored data on the underlying decentralized storage platform as that is not possible. This operation will upload the content as net new and instruct the Storedat indexing layer to point to this new representation of your data. 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 {
  UpdateData(
    groupId: "update-data-sample"
    providerId: "d8IatD1X3rxKNywpy8z0eMu1tzJQ9ENGslYSs7Z02ZU",
    content: {
      contentType: TEXT
      data: "This is a sample request for an update"
      metadata: [
        { name: "key", value: "value" }
      ]
    }
  ) {
    operation
    providerId
    groupId
    url
    statusCode
    errorMessage
  }
}

Sample Response

{
  "data": {
    "UpdateData": {
      "operation": "UPDATE",
      "providerId": "KMsIzPaIsNODKiFGXlRi2X900WRSWRda2jgW5aDdyh0",
      "groupId": "update-data-sample",
      "url": "https://www.arweave.net/KMsIzPaIsNODKiFGXlRi2X900WRSWRda2jgW5aDdyh0",
      "statusCode": "SUCCESS",
      "errorMessage": null
    }
  }
}

Last updated