Everabyte API
    Everabyte API
    • Back to home
    • Datahub
    • Create
      PUT
    • Check size
      GET
    • List
      GET

      Create

      Prod
      https://api.everabyte.io/api
      Prod
      https://api.everabyte.io/api
      PUT
      https://api.everabyte.io/api
      /datahub/create
      This endpoint creates a new datahub.
      Endpoint: /datahub/create
      Method: PUT
      Request Body Parameters:
      {
        "dataCenterId": "datacenter-id-example"
      }
      dataCenterId (required, string): The ID of the data center where the datahub will be created.
      Example Request:
      PUT /datahub/create
      Content-Type: application/json
      
      {
        "dataCenterId": 1
      }
      This request creates a new datahub within the data center with ID "us-east-1".
      Response Codes:
      201 Created: Datahub 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 datahub 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
      dataCenterId
      integer 
      required
      Example
      {
        "dataCenterId": 1
      }

      Request 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/datahub/create' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "dataCenterId": 1
      }'

      Responses

      🟢200Datahub
      application/json
      Body
      status
      integer 
      required
      message
      string 
      required
      data
      object 
      required
      id
      string 
      required
      code
      string 
      required
      name
      string 
      required
      isDelete
      boolean 
      required
      deletedAt
      null 
      required
      createdAt
      string 
      required
      updatedAt
      string 
      required
      Example
      {
        "status": 200,
        "message": "Datahub success created",
        "data": {
          "id": "i0qvnuyfa9vmkseifdm85z12",
          "code": "de-0109-wngjcaze",
          "name": "de-0109-wngjcaze",
          "isDelete": false,
          "deletedAt": null,
          "createdAt": "2025-01-09T19:25:52.586Z",
          "updatedAt": "2025-01-09T19:25:52.586Z"
        }
      }
      Next
      Check size
      Built with