All Products
Search
Document Center

DataWorks:DeleteProjectRole - DeleteProjectRole

Last Updated:May 18, 2026

Deletes a custom role from a workspace.

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

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the workspace management page to obtain the ID.

This parameter specifies the DataWorks workspace on which the API operation is performed.

12345

Code

string

Yes

The unique identifier of the custom role.

base_role_xxx

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID, which is used to locate logs and troubleshoot issues.

5BCD2252-F184-55A8-9675-337C43BE0CD1

Examples

Success response

JSON format

{
  "RequestId": "5BCD2252-F184-55A8-9675-337C43BE0CD1"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.