Skip to main content
PUT
/
basins
/
{basin}
Ensure a basin.
curl --request PUT \
  --url https://aws.s2.dev/v1/basins/{basin} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "deleted_at": "2023-11-07T05:31:56Z",
  "location": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://s2.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Path Parameters

basin
string
required

Basin name.

Required string length: 8 - 48

Body

application/json
config
object

Basin configuration.

location
null | string

Basin location. If omitted when creating, uses the default location for the service. This cannot be changed.

Required string length: 1 - 64

Response

created_at
string<date-time>
required

Creation time in RFC 3339 format.

name
string
required

Basin name.

Required string length: 8 - 48
deleted_at
string<date-time> | null

Deletion time in RFC 3339 format, if the basin is being deleted.

location
null | string

Basin location.

Required string length: 1 - 64