API documentation
    API documentation
    • Back to home
    • Datacenter
    • Create
      PUT
    • List
      GET

      Create

      PUT
      https://api.everabyte.io/api/datacenters/create
      This endpoint creates a new datahub.
      Endpoint: /datacenter/create
      Method: PUT
      Request Body Parameters:
      {
        "locationId": "location-id-example"
      }
      locationId (required, integer): The ID of the data center where the bucket will be created.
      Example Request:
      PUT /datacenter/create
      Content-Type: application/json
      
      {
        "locationId": 1
      }
      This request creates a new datahub within the data center with ID "us-east-1".
      Response Codes:
      201 Created: Datacenter successfully created. The response body might contain details about the newly created datahub, such as its ID.
      400 Bad Request: Invalid request body (e.g., missing datacenterId).
      404 Not Found: The specified data center was not found.
      409 Conflict: A datacenter already exists in the specified data center. (If applicable to your system's design)
      500 Internal Server Error: Server error.

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json

      Example
      {
          "locationId": 1
      }

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request PUT 'https://api.everabyte.io/api/datacenters/create' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "locationId": 1
      }'

      Responses

      🟢200Datahub
      application/json
      Body

      Example
      {
          "status": 200,
          "message": "Datacenter success created",
          "data": {
              "id": "i0qvnuyfa9vmkseifdm85z12",
              "code": "de-0109-wngjcaze",
              "maxSize": "1TB",
              "deletedAt": null,
              "createdAt": "2025-01-09T19:25:52.586Z",
              "updatedAt": "2025-01-09T19:25:52.586Z"
          }
      }
      Modified at 2025-09-12 18:07:06
      Next
      List
      Built with