doc-exports/docs/dis/api-ref/CreateApp.html
gtema 6bc123a554 Reimplementation of docs/doc-exports#263
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2022-11-11 12:03:08 +00:00

5.4 KiB

Creating Consumption Apps

Function

This API is used to create consumption apps.

URI

POST /v2/{project_id}/apps

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

The token can be obtained by calling the IAM API (value of X-Subject-Token in the response header).

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

app_name

Yes

String

Unique identifier of the consumer application to be created.

The application name contains 1 to 200 characters, including letters, digits, underscores (_), and hyphens (-).

Minimum: 1

Maximum: 200

Response Parameters

None

Example Requests

Creating Consumption Apps

POST https://{Endpoint}/v2/{project_id}/apps

{
  "app_name" : "newapp"
}

Example Responses

None

Status Codes

Status Code

Description

201

Normal response.

Error Codes

See Error Codes.