Skip to content

Update a package from the base repository

POST
/api/content/management/packages/{repo}/{packageName}/update-from-base
curl --request POST \
--url https://example.com/api/content/management/packages/example/example/update-from-base \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "changes": [ "example" ] }'

Pulls selected base-repository changes into the package. Requires the packages.update_from_base permission.

repo
required

Repository name or ID

string
packageName
required

Package name

string
Media typeapplication/json
object
changes
required

Base-repository changes to pull into the package

Array
Examplegenerated
{
"changes": [
"example"
]
}

Package updated from base

Media typeapplication/json

Update-from-base result

object
Examplegenerated
{}

Access denied

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}