Projects

Upload or replace the current original

Call addProjectFile without content first to prepare a typed document and obtain its file ID and generation. Requires editor access. Send projectId and the file's current generation as fileVersion. Whole requests accept up to 25 MiB. For larger files, use ordered parts of 8 MiB (last part may be smaller), with total size up to 250 MiB. Send part, parts and size on every request; part 0 returns uploadId, required on subsequent parts. Completion publishes the native original, advances its generation when replacing published bytes, clears extraction and queues reading. Read the current file state after completion. No historical bytes are retained. A 409 means reread the file and restart the upload; do not retry stale generations.

put/api/v1/project-blobs/{key}

Request

  • Base URL: https://askthegrid.com
  • URL: https://askthegrid.com/api/v1/project-blobs/{key}
  • Auth: HTTP bearer

Path parameters

keystring required

Query parameters

projectIdstring required
fileVersioninteger required
partinteger
partsinteger
sizeinteger
uploadIdstring

Response

Part accepted or original published

savedboolean required
uploadIdstring uuid
partinteger
partsinteger
sizeinteger
fileVersioninteger

Changes

No recorded changes to this operation across all 1 revision of this API.