# API Ignoring Presigned URLs Parameter

**URL:** <https://community.labelstud.io/t/api-ignoring-presigned-urls-parameter/412>\
**Category:** Label Studio Support\
**Created:** [November 18, 2024, 7:03pm UTC](https://community.labelstud.io/t/api-ignoring-presigned-urls-parameter/412 "2024-11-18T19:03:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![W.P\_McNeill](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/w.p_mcneill/32/205_2.png) [@W.P\_McNeill](https://community.labelstud.io/u/W.P_McNeill)\
**Post date:** [November 18, 2024, 7:03pm UTC](https://community.labelstud.io/t/api-ignoring-presigned-urls-parameter/412/1 "2024-11-18T19:03:16Z")

</div>

I am using the API to create a project with an associated S3 file source that I am hosting on Minio. I am doing it like so.

```auto
    client = LabelStudio(
        base_url="http://localhost:8080",
        api_key="user-token",
    )
    project = client.projects.create(**{"title":..., "label_config":...})
    storage = client.import_storage.s3.create(
        title="Page Images",
        aws_access_key_id="minioadmin",
        aws_secret_access_key="minioadmin",
        bucket="label-studio",
        prefix="page-images",
        s3endpoint="http://minio:9000",
        use_blob_urls=True,
        presign=False,
        project=project.id,
    )
    client.import_storage.s3.validate(id=storage.id, project=project.id)
    client.import_storage.s3.sync(storage.id)

```

Everything gets set up correctly, except the file source is still set to use presigned URLs. I have manually turn that off in the web UI.

Having presigned URLs [breaks](https://community.labelstud.io/t/error-loading-image-from-s3-bucket-on-local-minio-server/408) my setup. The problem may ultimately lie with Minio, but for the moment I need to be able to set presigned URLs to False via the API.

Am I doing something wrong, or is the fact that the Label Studio API is ignoring the `presign=False` parameter a bug?

---

<div class="post-metadata">

**Author:** ![W.P\_McNeill](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/w.p_mcneill/32/205_2.png) [@W.P\_McNeill](https://community.labelstud.io/u/W.P_McNeill)\
**Post date:** [November 18, 2024, 7:12pm UTC](https://community.labelstud.io/t/api-ignoring-presigned-urls-parameter/412/2 "2024-11-18T19:12:30Z")

</div>

Calling `client.import_storage.s3.update(id=storage.id, presign=False)` also fails to change this.
