---
title: "POST /locations"
method: POST
path: "/locations"
tags: ["CredentialService", "locations", "unofficial"]
---

# POST /locations

`POST /locations`

## Request body

- CreateStorageLocationRequest — Create a new storage location
  - `name` string, required — Storage location to create.
  - `url` string, required
  - `type` integer, required
  - `credential` string, required
  - `description` string
  - `properties` object

## Response `200`

OK

- StorageLocation
  - `id` string
  - `name` string, required
  - `url` string, required
  - `type` integer, required
  - `credential` string, required
  - `description` string
  - `properties` object
  - `owner` string — Username of current owner of storage location.
  - `createAt` string — Time at which this storage location was created, in epoch milliseconds.
  - `createdBy` string — Username of storage location creator.
  - `updateAt` string — Time at which this storage location was last updated, in epoch milliseconds.
  - `updatedBy` string — Username of user who last modified storage location.

## Other responses

- `default` — Default error response

## Changes

- **2025-02-23** `bc4e0301a874` — 5 info
  - added the optional property `createAt` to the response with the `200` status
  - added the optional property `createdBy` to the response with the `200` status
  - added the optional property `owner` to the response with the `200` status
  - added the optional property `updateAt` to the response with the `200` status
  - …1 more
- **2025-02-20** `27d7bed71eaa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/delta-incubator/apis/delta-sharing-api/changes/locations/post.md)

---

[API](https://skmtc.dev/delta-incubator/apis/delta-sharing-api.md) · [All operations](https://skmtc.dev/delta-incubator/apis/delta-sharing-api/llms.txt) · [OpenAPI document](https://skmtc.dev/delta-incubator/apis/delta-sharing-api/revisions/bc4e0301a874?raw)
