Update metadata package holder

PUT {{baseUrl}}/api/packages/:packageId

Fill the content of the in-memory metadata package holder per supplied specification. Currently, it's only supported when the holder is empty. You obtain the authorization token needed to execute the request using POST /auth/login; you obtain the project ID using GET /projects. You pass the authorization token and the project ID in the request header.You provide the ID of the package you want to download in the path of the request which can be obtained using POST /packages.

Request Params

KeyDatatypeRequiredDescription
fieldsnullComma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model.

Request Body

{"type"=>"project", "settings"=>{"updateSchema"=>["recal_table_logical_size", "recal_table_keys_fact_entry_level"], "aclOnReplacingObjects"=>"use_existing", "aclOnNewObjects"=>["keep_acl_as_source_object"], "defaultAction"=>"replace"}, "content"=>[{"id"=>"8D679D5111D3E4981000E787EC6DE8A4", "name"=>"Year", "type"=>12, "action"=>"replace", "includeDependents"=>true}]}

HEADERS

KeyDatatypeRequiredDescription
X-MSTR-AuthTokenstring(Required) Authorization token
Preferstring(Required) Prefer--allow client to set preferences. Currently, respond-async allows client to execute in async mode
X-MSTR-ProjectIDstringProject ID
Content-Typestring