• Data Ingestion Service

dis
  1. Help Center
  2. Data Ingestion Service
  3. API Reference
  4. API Description
  5. Creating a Consumer Application

Creating a Consumer Application

Function

This API is used to create a consumer application.

URL

  • URL format

    POST /v2/{project_id}/apps

  • Parameter description

    None

Request

  • Example request
    POST https://{endpoint}:{port}/v2/6352bba7aaab443aa1d9943efc586a68/apps
    
    Request Header: 
    Content-Type: application/json 
    X-Sdk-Date: 20180820T024248Z 
    Authorization: SDK-HMAC-SHA256 Credential=QRUP2R3QFNAOVAWMYHZW/20180820/eu-de/test/sdk_request,  
    SignedHeaders=host;x-sdk-date,  
    Signature=9d8b56b055c0e1f7a9498d881a7cb726be91b4f0cde1773b0b1557e987a480ce
    
    {
      "app_name": "app_test"
    }
  • Parameter description
    Table 1 Parameter description

    Parameter

    Mandatory

    Type

    Description

    app_name

    Yes

    String

    Unique name of the consumer application to be created.

    An application name is 1 to 50 characters long. Only letters, digits, hyphens (-), and underscores (_) are allowed.

Response

  • If the DIS stream was successfully created, a 201 response with an empty response body is returned.
  • If the DIS stream failed to be created, identify the failure cause according to the response body and the instructions in Error Codes.

Status Code

  • Normal

    201 Created

  • Failed

    For more information, see Error Codes.