Skip to content

TRM Registry API

The raw OpenAPI schema is available in YAML format here.

It describes the registry protocol only: endpoint inputs, outputs, and HTTP status codes.

{package} is a registry package identifier. Its naming convention is registry-defined. This is intentionally a protocol-level contract.

Call GET / before authenticating. Its authentication_type selects unauthenticated, HTTP Basic, bearer-token, or OAuth2 authentication for subsequent operations.

Optional operations: the navigation operations (/search, /package/info/{package}, /package/readme/{package}, /package/manifest/{package}, /package/namespace/{package}) let clients browse a registry. Registries are not required to implement them; a registry that does not support one answers 501 (a 404 or 405 without an Error body is also treated as unsupported). Clients must degrade gracefully. When implemented, anonymous callers see public data; a supplied credential that cannot authenticate fails the request instead of being ignored.

Version: 5.2.0

Servers

URL
https://registry.example.com/

Available authorizations

basicAuth (HTTP, basic)

Use when ping reports BASIC authentication.

bearerAuth (HTTP, bearer)

Supply a registry-supported credential when ping reports TOKEN or OAUTH2 authentication.


[GET] /

Get registry metadata

Responses

Code Description Schema
200 Registry capabilities and messages application/json: Ping
default Request failed application/json: Error

[GET] /whoami

Get the authenticated identity

Responses

Code Description Schema
200 Current identity application/json: WhoAmI
401 Request failed application/json: Error
default Request failed application/json: Error

[POST] /auth

Exchange an OAuth2 authorization code or refresh token

Implement this operation only when ping reports OAUTH2 authentication.

Request Body

Required Schema
Yes application/json: OAuthTokenRequest

Responses

Code Description Schema
200 OAuth2 tokens application/json: OAuthTokenResponse
400 Request failed application/json: Error
401 Request failed application/json: Error
default Request failed application/json: Error

[POST] /batchCompare

Compare requested versions with the latest available version

Request Body

Required Schema
Yes application/json: [ VersionRequest ]

Responses

Code Description Schema
200 One comparison result per supplied item application/json: [ VersionComparison ]
400 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[HEAD] /telemetry

Check whether the registry accepts telemetry

Optional operation. Clients send telemetry only when this probe answers with a 2xx status; registries that don't collect telemetry need not implement either /telemetry operation.

Responses

Code Description
204 Telemetry is accepted
404 Telemetry is not supported

[POST] /telemetry

Submit an opt-in, anonymous telemetry event

Optional operation, sent only when the user opted in. Events contain no system identifiers, user names, credentials, or package contents. Clients ignore the response, so registries should answer quickly.

Request Body

Required Schema
Yes application/json: TelemetryEvent

Responses

Code Description Schema
204 Event accepted
400 Request failed application/json: Error
429 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[GET] /package/{package}

Get package metadata and an artifact download link

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version or distribution tag. Defaults to latest. No string,
Default: latest

Responses

Code Description Schema
200 Selected package release application/json: Package
400 Request failed application/json: Error
404 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

Search packages

Optional. Paginated package search. A call without q, keywords, maintainers or organizations may return a registry-chosen list (for example, popular packages) or be rejected with 400. No match is a 200 with an empty results array.

Parameters

Name Located in Description Required Schema
q query Free text query. No string
keywords query Comma-separated keywords; packages must match all. No string
maintainers query Comma-separated maintainer (user or organization) names. No string
organizations query Comma-separated organization names. No string
sort query No string,
Available values: "relevance", "downloads", "name", "updated",
Default: relevance
page query 1-based page number. No integer,
Default: 1
limit query Page size. No integer,
Default: 25

Responses

Code Description Schema
200 Search result page application/json: Search
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
501 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[GET] /package/info/{package}

Get package release navigation metadata

Optional. Metadata of the selected release, its versions and distribution tags.

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version or distribution tag. Defaults to latest. No string,
Default: latest

Responses

Code Description Schema
200 Get package release navigation metadata application/json: PackageInfo
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
501 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[GET] /package/readme/{package}

Get package release README

Optional. readme is null when the release has no README.

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version or distribution tag. Defaults to latest. No string,
Default: latest

Responses

Code Description Schema
200 Get package release README application/json: Readme
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
501 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[GET] /package/manifest/{package}

Get package release manifest

Optional. The complete release manifest, including post activities.

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version or distribution tag. Defaults to latest. No string,
Default: latest

Responses

Code Description Schema
200 Get package release manifest application/json: PackageManifest
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
501 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[GET] /package/namespace/{package}

Get package release namespace

Optional. 404 when the release ships no namespace.

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version or distribution tag. Defaults to latest. No string,
Default: latest

Responses

Code Description Schema
200 Get package release namespace application/json: Namespace
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
501 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[GET] /transport/{trkorr}

Package transport download

Downloads the canonical transports.

Parameters

Name Located in Description Required Schema
trkorr path Registry transport Yes string
target query Optional destination transport request allocated by the target SAP system. When omitted, the canonical transport is downloaded unchanged. No string

Responses

Code Description Schema
200 The transport is ready to download application/json: TransportDownload
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
409 Request failed application/json: Error
422 Request failed application/json: Error
429 Request failed application/json: Error
502 Request failed application/json: Error
503 Request failed application/json: Error
504 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
basicAuth
bearerAuth

[GET] /diff/{package}

Get the differences between two releases of a package

Optional capability. Comparing releases can take time, so a registry may compute diffs asynchronously: while the diff is not ready it answers 202 with a progress object whose progress_pool_url the client polls (the same pattern as publication). When polling reports current_step == steps, data.diff_url is the URL to request the diff from; data.error reports a failure. A registry that does not support diffs answers 501. A registry may restrict diffs to some accounts: it then answers 401 to anonymous callers and 402 to accounts whose plan does not include them; the progress_pool_url follows the same rule.

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
from query Release version to compare from (the older side). Yes string
to query Release version to compare to (the newer side). Must differ from from. Yes string

Responses

Code Description Schema
200 The diff report application/json: Diff
202 The diff is being computed; poll progress_pool_url
Headers:
Retry-After: Suggested polling delay in seconds.
application/json: DiffProgress
302 The diff report is available at the Location URL (a 200 response with a Diff body)
400 Request failed application/json: Error
401 Request failed application/json: Error
402 The account's plan does not include release diffs (code PRO_PLAN_REQUIRED) application/json: Error
404 Request failed application/json: Error
409 A release cannot be compared (code diff_unavailable) application/json: Error
422 The comparison failed (code diff_failed) or exceeds the registry's size limits (code diff_too_large) application/json: Error
429 Request failed application/json: Error
501 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
None (anonymous)
basicAuth
bearerAuth

[POST] /delete

Endpoint for deletion transport. Its description (E07T) is the source's with the TRM kind set to DELE: @X1@TRM [(<kind>) ]<package> <version> becomes @X1@TRM (DELE) <package> <version> (60 characters at most); other descriptions are kept. trm-core names the target dummy with the same rule.

Request Body

Required Schema
Yes multipart/form-data: DeleteTransportRequest

Responses

Code Description Schema
200 The deletion transport is ready to download, or empty is true because nothing remains to delete; then no download is offered. application/json: DeletionTransportDownload
400 Request failed application/json: Error
401 Request failed application/json: Error
402 The account's plan does not include transport deletion (code PRO_PLAN_REQUIRED) application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
409 Request failed application/json: Error
413 Request failed application/json: Error
422 Request failed application/json: Error
429 Request failed application/json: Error
502 Request failed application/json: Error
503 Request failed application/json: Error
504 Request failed application/json: Error
default Request failed application/json: Error
Security
Security Schema Scopes
basicAuth
bearerAuth

[PUT] /package/tag/{package}

Assign a tag to a package version

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string

Request Body

Required Schema
Yes application/json: TagAssignment

Responses

Code Description Schema
204 Tag assigned
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
default Request failed application/json: Error

[DELETE] /package/tag/{package}

Remove a package tag

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string

Request Body

Required Schema
Yes application/json: Tag

Responses

Code Description Schema
204 Tag removed
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
default Request failed application/json: Error

[GET] /publish/check/{package}

Check whether a package version can be published

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version. Yes string
private query Package visibility indicator. No string

Responses

Code Description Schema
204 Publishing is permitted
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
default Request failed application/json: Error

[POST] /publish/{package}

Upload a package artifact

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version. Yes string
tags query Comma-separated tags to apply. Defaults to latest. No string,
Default: latest

Request Body

Required Schema
Yes multipart/form-data: PublishRequest

Responses

Code Description Schema
201 Package published successfully
202 Publication accepted for asynchronous processing application/json: Publish
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
413 Request failed application/json: Error
422 Request failed application/json: Error
default Request failed application/json: Error

[POST] /deprecate/{package}

Mark a package release as deprecated

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version or distribution tag. Defaults to latest. No string,
Default: latest

Request Body

Required Schema
Yes application/json: DeprecationRequest

Responses

Code Description Schema
204 Release deprecated
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
default Request failed application/json: Error

[POST] /unpublish/{package}

Remove or yank a package release

Parameters

Name Located in Description Required Schema
package path A package identifier appended exactly as supplied by RegistryV2. It may contain path separators; do not percent-encode / within the identifier. Yes string
version query Release version or distribution tag. Defaults to latest. No string,
Default: latest

Responses

Code Description Schema
204 Release removed
400 Request failed application/json: Error
401 Request failed application/json: Error
403 Request failed application/json: Error
404 Request failed application/json: Error
409 Request failed application/json: Error
default Request failed application/json: Error

Schemas

Error Schema

Name Type Description Required
message string Yes
code string Optional machine-readable error code. No

Ping Schema

Name Type Description Required
authentication_type string,
Available values: "NO_AUTH", "BASIC", "OAUTH2", "TOKEN"
Yes
authentication_data OAuth2Data No
alert_email string (email) No
messages [ Message ] No

OAuth2Data Schema

Name Type Description Required
authorization_url string (uri) Yes
client_id string Yes
response_type string Yes
scope string No

OAuthTokenRequest Schema

Name Type Description Required
grant_type string,
Available values: "authorization_code", "refresh_token"
Yes
code string No
refresh_token string No
redirect_uri string No

OAuthTokenResponse Schema

Name Type Description Required
access_token string Yes
token_type string Yes
expires_in integer Yes
refresh_token string No

WhoAmI Schema

Name Type Description Required
user string Yes
messages [ Message ] No

Message Schema

Name Type Description Required
type string,
Available values: "INFO", "WARNING", "ERROR"
Yes
text string Yes

VersionRequest Schema

Name Type Description Required
name string Package identifier. Yes
version string Version to compare. Yes

VersionComparison Schema

Name Type Description Required
name string Yes
version string Yes
latestVersion string No
comparison string,
Available values: "<", "=", ">"
No
error string Present when this item could not be compared. No

Package Schema

Name Type Description Required
name string Yes
dist_tags object Distribution tag names mapped to release versions. Yes
versions [ string ] Yes
yanked_versions [ string ] Yes
manifest { "name": string, "version": string, "engines": object } Package manifest supplied by the artifact. Yes
deprecated boolean Yes
deprecated_message string No
changelog string Optional Markdown changelog supplied at publication time and sanitized by the registry before storage and response. No
download_link string (uri) A URL that returns the package .trm artifact as application/octet-stream. RegistryV2 follows redirects when downloading it. Yes
download_link_expiry long Unix epoch milliseconds. An expired download link returns 410 Gone so the client can request a fresh package view. Unknown links return 404 Not Found. No
checksum string Base64-encoded SHA-512 digest of the exact artifact bytes returned by download_link. Yes
transports [ Transport ] Transports available in the selected release. Yes

Transport Schema

Name Type Description Required
trkorr string Yes
type string,
Available values: "TADIR", "DEVC", "LANG", "CUST"
Yes
description string Yes
contents TransportContents Yes

TransportContents Schema

Name Type Description Required
download_link string (uri) A URL that returns the exact parsed R3trans log JSON for this release transport. Yes
download_link_expiry long Unix epoch milliseconds. An expired download link returns 410 Gone so the client can request a fresh package view. Unknown links return 404 Not Found. Yes
checksum string Base64-encoded SHA-512 digest of the exact JSON bytes returned by download_link. Yes

TransportDownload Schema

Name Type Description Required
download_link string (uri) A URL that returns a ZIP containing the K and R transport files. Yes
download_link_expiry long Unix epoch milliseconds. An expired download link returns 410 Gone so the client can request a fresh package view. Unknown links return 404 Not Found. Yes
checksum string Base64-encoded SHA-512 digest of the exact ZIP bytes returned by download_link. Yes

DeleteTransportRequest Schema

Name Type Description Required
header binary The K/header file of the source transport. Yes
data binary The R/data file of the source transport. Yes
options string Optional JSON text with DeleteTransportOptions. Without it the whole source transport is converted into a deletion transport that keeps the source request. No

DeleteTransportOptions Schema

Name Type Description Required
target string Request the deletion transport is renamed to. Defaults to the source request. No
subtract [ string ] Registry transports readable by the caller whose objects and keys must not be deleted, as GET /transport/{trkorr} resolves them. No
exclude { "e071": [ DeletedObject ], "e071k": [ DeletedKey ] } Objects and customizing keys never to delete. No

DeletedObject Schema

Name Type Description Required
pgmid string Yes
object string Yes
objName string Yes

DeletedKey Schema

Name Type Description Required
table string Table name (E071K OBJNAME). Yes
tabkey string Table key (E071K TABKEY); a trailing * denotes a generic key. Yes

DeletedContent Schema

What the deletion transport deletes: object entries (CTS comments, language entries and key-based entries excluded) and the key selectors of key-based entries.

Name Type Description Required
e071 [ DeletedObject ] Yes
e071k [ DeletedKey ] Yes

DeletionTransportDownload Schema

Name Type Description Required
DeletionTransportDownload TransportDownload & { "deleted": DeletedContent } or { "empty": boolean,
Available values: true, "deleted": DeletedContent }

Tag Schema

Name Type Description Required
tag string Yes

TagAssignment Schema

Name Type Description Required
TagAssignment Tag & { "version": string }

PublishRequest Schema

Name Type Description Required
artifact binary Package artifact. Yes
readme binary Optional Markdown or plain-text README. No
changelog binary Optional Markdown or plain-text changelog for this release. No
retainedCustomizing string JSON-encoded array of up to 100 unique CUST TRKORRs from the immediately preceding published release to retain by reference. No

Publish Schema

Name Type Description Required
progress_pool_url string (uri) URL to poll for publication progress. Yes
steps integer Total number of publication steps. Yes
current_step integer Current publication step. Yes
current_step_message string Optional description of the current publication step. No

DiffProgress Schema

Name Type Description Required
progress_pool_url string (uri) URL to poll for diff progress; it answers with this same object. Yes
steps integer Total number of steps. The diff is ready when current_step equals steps. Yes
current_step integer Yes
current_step_message string No
data { "diff_url": string (uri), "error": string, "code": string,
Available values: "diff_failed", "diff_too_large" }
No

Diff Schema

A trm.transport-log-diff report. Objects of the package are listed with an added, removed, modified, unchanged or indeterminate status; entries hold the changed content of each object. Clients must ignore unknown properties and check format and version.

Name Type Description Required
format string Yes
version integer Yes
comparison object No
before object No
after object No
summary { "objects": object, "entries": object, "changedEntries": integer } Yes
objects [ { "id": string, "pgmid": string, "type": string, "name": string, "status": string,
Available values: "added", "removed", "modified", "unchanged", "indeterminate", "entryIds": [ string ], "fidelity": string,
Available values: "exact", "rendered" } ]
Yes
entries [ { "id": string, "objectId": string, "kind": string, "name": string, "status": string,
Available values: "added", "removed", "modified", "indeterminate" } ]
Yes

DeprecationRequest Schema

Name Type Description Required
deprecate_note string Message explaining why the release is deprecated. Yes

TelemetryEvent Schema

Name Type Description Required
schemaVersion integer Yes
event string,
Available values: "install"
Yes
package { "name": string, "version": string, "previousVersion": string } Yes
outcome string,
Available values: "success", "failure"
Yes
failure { "reason": string,
Available values: "import", "sapEntries", "engines", "dependencies", "other", "step": string, "rc": integer }
Present only when outcome is failure. No
durationMs integer Duration of the whole action. Yes
importDurationMs integer Duration of the transport import alone. No
transports [ { "type": string,
Available values: "DEVC", "TADIR", "LANG", "CUST", "DELETION", "rc": integer, "objects": object } ]
No
system { "basisRelease": string, "basisSp": string, "product": string,
Available values: "S4HANA", "BW4HANA", "ECC", "NETWEAVER", "productRelease": string, "productSp": string, "dbSystem": string, "kernelRelease": string }
Non-identifying characteristics of the target SAP system. Yes
client { "core": string } No

Maintainer Schema

Name Type Description Required
name string Yes
type string,
Available values: "user", "organization"
Yes

SearchResultItem Schema

Name Type Description Required
name string Yes
version string Yes
description string No
license string No
maintainers [ Maintainer ] Yes
release_date dateTime Yes
downloads integer Yes
private boolean Yes

Search Schema

Name Type Description Required
total integer Matching packages across all pages. Yes
page integer Yes
limit integer Yes
results [ SearchResultItem ] Yes

PackageInfo Schema

Name Type Description Required
name string Yes
version string Yes
description string No
license string No
release_date dateTime Yes
private boolean Yes
deprecated boolean Yes
deprecated_message string No
website string No
git string No
keywords [ string ] Yes
maintainers [ Maintainer ] Yes
downloads integer Yes
versions [ string ] Yes
version_dates object Yes
yanked_versions [ string ] Yes
dist_tags object Yes
dependencies [ { "name": string, "version": string } ] Yes
has_namespace boolean Yes

Readme Schema

Name Type Description Required
name string Yes
version string Yes
readme string, null Markdown source. Yes

PackageManifest Schema

Name Type Description Required
name string Yes
version string Yes
manifest object Artifact-defined release manifest. Yes

Namespace Schema

Name Type Description Required
namespace string Yes
descriptions [ { "language": string, "description": string, "owner": string } ] Yes