CreateAppLayout

Updated at:

Creates a custom layout for an application.

Operation description

QPS limit

The queries per second (QPS) limit per user is 10. If the limit is exceeded, API calls are throttled, which may affect your services. Call this API operation at a reasonable frequency.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

rtc:CreateAppLayout

none

*App

acs:rtc:*:{#accountId}:app/{#AppId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

The client token.

53200b81-b761-4c10-842a-a0726d97xxxx

AppId

string

Yes

The application ID. You can create and query the ID in the console. Only a single ID is supported.

ac7N****

Layout

object

Yes

The layout.

Name

string

Yes

The name of the layout.

Layout

Panes

array<object>

Yes

The list of panes.

object

No

The detailed information about the pane.

ZOrder

integer

No

The Z-order of the pane. A value of 0 indicates the bottom layer, 1 indicates the layer above 0, and so on.

0

X

number

No

The X coordinate, represented as a normalized percentage. Valid values: 0.0 ≤ X ≤ 1.0.

0.25

Y

number

No

The Y coordinate, represented as a normalized percentage. Valid values: 0.0 ≤ Y ≤ 1.0.

0.25

Height

number

No

The height of the pane, represented as a normalized percentage. Valid values: 0.0 < Height ≤ 1.0.

0.25

Width

number

No

The width of the pane, represented as a normalized percentage. Valid values: 0.0 < Width ≤ 1.0.

0.25

PaneId

integer

No

The ID of the pane. The value starts from 0.

0

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

20A6D1E3-1F5F-5440-A4F1-EC7831646FE4

LayoutId

string

The ID of the layout.

167466539798442****

Examples

Success response

JSON format

{
  "RequestId": "20A6D1E3-1F5F-5440-A4F1-EC7831646FE4",
  "LayoutId": "167466539798442****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ParameterError %s.
400 Quota.Invalid %s. Resource quota is insufficient, please submit a work order to increase the quota
404 NotFound %s. The requested resource does not exist

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.