---
title: "Update an Endpoint Storage"
method: PATCH
path: "/v1/storage/endpoint/{endpoint_name}"
tags: ["Endpoint Storage"]
---

# Update an Endpoint Storage

`PATCH /v1/storage/endpoint/{endpoint_name}`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/storage/endpoint/{endpoint_name}`
- Auth: API key in header `authorization`

Update an Endpoint Storage with new specifications.

## Request body

- EndpointStoragePatchPayload
  - `name` string: Name of the Endpoint Storage
  - `access_key_id` string: Your access key ID to connect to your S3 Bucket.
  - `endpoint` string: Full URL to your S3 Bucket with https or http. It's recommended to not include your bucket name as a subdomain
  - `bucket` string: Your secret access key to connect to your S3 Bucket. Will be encrypted.
  - `output_format` 'TEXT' | 'NDJSON': The format how the logs will be exported to the bucket.
  - `container_log_version` 'v1' | 'v2': Log pipeline version. `v1` stores a single file per deployment at the end of the run. `v2` uses a streaming pipeline that writes chunked logs to S3 in real time.
  - `secret_access_key` string: Your secret access key to connect to your S3 Bucket. Will be encrypted.

## Response `200`

Success

- EndpointStoragePatchResponse
  - `name` string: Name of the Endpoint Storage
  - `access_key_id` string: Your access key ID to connect to your S3 Bucket.
  - `endpoint` string: Full URL to your S3 Bucket with https or http. It's recommended to not include your bucket name as a subdomain
  - `bucket` string: Your secret access key to connect to your S3 Bucket. Will be encrypted.
  - `output_format` 'TEXT' | 'NDJSON': The format how the logs will be exported to the bucket.
  - `container_log_version` 'v1' | 'v2': Log pipeline version. `v1` stores a single file per deployment at the end of the run. `v2` uses a streaming pipeline that writes chunked logs to S3 in real time.
  - `create_time` string: UTC time of endpoint storage creation
  - `last_updated` string: UTC time of endpoint storage last update

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
