Help Center> CodeArts Deploy> API Reference> APIs> Managing Application Permissions> Checking whether the current user has the permission to create applications in a project.
Updated on 2024-07-05 GMT+08:00

Checking whether the current user has the permission to create applications in a project.

Function

This API is used to check whether the current user has the permission to create applications in a project.

Calling Method

For details, see Calling APIs.

URI

GET /v1/applications/creatable

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Minimum: 32

Maximum: 32

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

Minimum: 0

Maximum: 20000

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

result

result object

Result for whether the user has permissions to create applications

status

String

Request success or failure status

Table 4 result

Parameter

Type

Description

creatable

Boolean

Whether the user has permissions to create applications

Example Requests

https://{endpoint}/v1/applications/creatable?project_id=46e2dd65b123456798137caebae6fa6d

Example Responses

Status code: 200

OK: The request is successful.

{
  "result" : {
    "creatable" : true
  },
  "status" : "success"
}

Status Codes

Status Code

Description

200

OK: The request is successful.

Error Codes

See Error Codes.