UpdateAuthorizationAttributes

Updated at:

Modifies the authorization attributes for a specified resource.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ResourceType

string

Yes

The type of the resource. Valid values:

  • dashboard: dashboard

  • screen: screen

  • report: report

  • ANALYSIS: ad-hoc analysis

  • dashboardOfflineQuery: self-service query

  • dataForm: data form

  • cube: dataset

  • datasource: data source

cube

ResourceId

string

Yes

The ID of the resource to modify.

al*************7ufv

EditPermissionType

integer

No

The type of edit permissions. Valid values:

  • 0: Private.

  • 11: All workspace members except guests. However, for data forms, datasets, and data sources, this value grants permissions to all workspace developers.

  • 12: Specified members. However, for data forms, datasets, and data sources, this value grants permissions to specified developers.

0

UsePermissionType

integer

No

The type of use permissions for datasets and data sources. Valid values:

  • 1: All workspace members except guests.

  • 2: Specified members.

1

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The request ID.

0c52dbfa-85de-41e8-9dab-43af8e1952a3

Result

boolean

Indicates whether the permissions were updated. Valid values:

  • true: The update succeeded.

  • false: The update failed.

true

Success

boolean

Indicates whether the request was successful.

true

Examples

Success response

JSON format

{
  "RequestId": "0c52dbfa-85de-41e8-9dab-43af8e1952a3",
  "Result": true,
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 Internal.System.Error An internal system error occurred. An internal system error occurred.
400 Invalid.Parameter.Error The parameter is invalid:%s. invalid parameter: ${0}.
400 Cube.Not.Exist The Cube does not exist. The Cube does not exist.
400 Datasource.NotFound.Error The specified data source does not exist: %s. The specified data source does not exist: %s.
500 Authorize3Rd.Page.Org.Illegal The report does not match the organization. The report does not match the organization.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.