Public M2M API — storage
Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.
Authentication and permissions · Requests, results and recovery
/api/v1/storage
Exported methods: GET, POST, DELETE
GET
- Resource scopes:
storage:read - Query parameters:
tokenId - Response keys observed across outcomes:
buckets,data,purchases,volumes
POST
- Resource scopes:
storage:write - Explicit response statuses:
201,409,422 - Explicit error codes:
conflict,invalid_request,storage_error - Response keys observed across outcomes:
bucket,data,volume
These tables describe the validated form after the server normalizes the submitted input. Include the shown discriminator explicitly to select an alternative; the server may also accept omitted or aliased fields according to its route-specific normalization.
Provide one of these observed alternatives; additional validation may apply.
Payload alternative 1
Payload alternative 2
DELETE
- Resource scopes:
storage:write - Query parameters:
bucketId,tokenId,volumeId - Explicit response statuses:
400,422 - Explicit error codes:
invalid_request,storage_error - Response keys observed across outcomes:
bucketId,deleted,updated,volumeId
Use query or JSON bucketId to mark a bucket record deleted. Alternatively provide volumeId: with tokenId it requests provider volume deletion; without it the purchase is marked TERMINATED locally. Bucket takes precedence if both are supplied. Check the resulting state and provider separately.
JSON properties observed: bucketId, tokenId, volumeId.
These names are read by the handler; they are not a complete schema or a promise that every property applies to every branch. Check the validation messages and operation result.
/api/v1/storage/buckets/{id}/objects
Exported methods: GET, POST, PATCH, DELETE
GET
- Resource scopes:
storage:read - Path parameters:
id - Query parameters:
prefix - Explicit response statuses:
404 - Explicit error codes:
not_found - Response keys observed across outcomes:
bucket,data,objects
POST
- Resource scopes:
storage:write - Path parameters:
id - Explicit response statuses:
201,404,422 - Explicit error codes:
invalid_request,not_found,storage_error - Response keys observed across outcomes:
action,data,object,url
Validated request fields
PATCH
- Resource scopes:
storage:write - Path parameters:
id - Explicit response statuses:
404,422 - Explicit error codes:
invalid_request,not_found - Response keys observed across outcomes:
bucketId,cacheControl,key,metadata,ok
Validated request fields
DELETE
- Resource scopes:
storage:write - Path parameters:
id - Query parameters:
key - Explicit response statuses:
400,404,422 - Explicit error codes:
invalid_request,not_found,storage_error - Response keys observed across outcomes:
bucketId,deleted,key
Provide a nonempty identifier either as query parameter key or JSON body field key; send one form at a time.