All Products
Search
Document Center

MaxCompute:UpdatePackage

Last Updated:Mar 03, 2024

Updates the objects in a package and projects in which the package can be installed.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /api/v1/projects/{projectName}/packages/{packageName}

Request parameters

ParameterTypeRequiredDescriptionExample
projectNamestringYes

The name of the MaxCompute project.

projectA
packageNamestringYes

The name of the package.

packageA
bodystringNo

The request body parameters.

{ "add": { "allowedProjectList": [ { "label": "2", "project": "project_name" } ], "resourceList": { "table": [ { "name": "table_name", "actions": [ "Describe", "Select" ] }, { "name": "table_name", "actions": [ "Describe", "Select" ] } ], "resource": [ { "name": "", "actions": [] }, { "name": "", "actions": [] } ], "function": [ { "name": "", "actions": [] }, { "name": "", "actions": [] } ] } }, "remove": { "allowedProjectList": [ { "project": "project_name" }, { "project": "project_2" } ], "resourceList": { "table": [ { "name": "table_name" }, { "name": "table_name" } ], "resource": [ { "name": "" }, { "name": "" } ], "function": [ { "name": "" }, { "name": "" } ] } } }

Response parameters

ParameterTypeDescriptionExample
object

PopResult

requestIdstring

The ID of the request.

0bc1ec4016697018733156991e0888
datastring

The returned data.

success

Examples

Sample success responses

JSONformat

{
  "requestId": "0bc1ec4016697018733156991e0888",
  "data": "success"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history