bee icon indicating copy to clipboard operation
bee copied to clipboard

Documentation on "/soc" doesn't mention use of swarm-postage-batch-id

Open tmm360 opened this issue 3 years ago • 1 comments

Location

https://docs.ethswarm.org/api/#tag/Single-owner-chunk/paths/~1soc~1%7Bowner%7D~1%7Bid%7D/post and OpenAPI documentation.

Description

Documentation doesn't mention requirement of swarm-postage-batch-id parameter for this API. Anyway, trying to pass an invalid one I receive

{"message":"batch not found","code":400}

that make no sense, if it shouldn't be required. Anyway I didn't try to pass no one at all.

tmm360 avatar Jul 19 '22 18:07 tmm360

This is clearly an issue with the documentation, thanks for reporting!

As a general rule any time Bee writes to the network, a valid postage stamp is required and it is expected to be provided with the swarm-postage-batch-id header.

agazso avatar Jul 26 '22 16:07 agazso