Skip to main content
POST/transactional-api/update-content-package

Update Content Package

Updates the name, description, or availability settings of a content package.

Authorization: Bearer token (JWT). See Authentication.

Request

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/update-content-package' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"packageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"availability": "all_healthcare_organisations",
"availableToTenants": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"availableToOdsCodes": "string"
}'

Body parameters

FieldTypeRequiredDescription
packageIdstring<uuid>YesID of the content package to update.
namestring (nullable)NoNew name for the package.
descriptionstring (nullable)NoNew description for the package.
availabilityenum (nullable)NoNew distribution scope. One of: all_healthcare_organisations, specific_organisations.
availableToTenantsarray<string<uuid>> (nullable)NoTenant IDs to distribute to. Required when availability is specific_organisations.
availableToOdsCodesstring (nullable)NoComma-separated ODS codes to distribute to. At least one of availableToTenants or availableToOdsCodes is required when availability is specific_organisations.

Responses

200 Success.
{
"status": "ok"
}
400 Invalid request.
3 possible code values
CodeDescriptionWhen
missing-required-fieldfieldName is requireda required field is absent
invalid-operationHuman-readable reason.business rule violation
invalid-fieldfieldName must be a valid UUIDa UUID field is not a valid UUID
{
"errors": [
{
"code": "missing-required-field",
"description": "fieldName is required"
}
]
}
404 Content package not found.