Get buckets current user

Get buckets current user

List all organizational storage buckets that the current user has access to. This function is only available through a JWT token.

GEThttps://studio.edgeimpulse.com/v1/api/users/buckets
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

buckets*array of object
Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/users/buckets', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "buckets": [
    {
      "organizationName": "text",
      "bucket": "text",
      "region": "text"
    }
  ]
}