Skip to main content
POST
/
basins
Create a basin.
curl --request POST \
  --url https://aws.s2.dev/v1/basins \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "basin": "<string>"
}
'
{
  "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.

Headers

s2-request-token
string

Client-specified request token for idempotent retries.

Maximum string length: 36

Body

application/json
basin
string
required

Basin name which must be globally unique. It can be between 8 and 48 bytes in length, and comprise lowercase letters, numbers and hyphens. It cannot begin or end with a hyphen.

Required string length: 8 - 48
config
object

Basin configuration.

location
null | string

Basin location. If omitted when creating, uses the default location for the service.

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