Package
Create a package
Changed onCreate a package. To publish its first revision in the same call, send version together with components. The first revision also becomes the package's default_revision_id.
You need read access to every resource the bill of materials references.
ℹ️ Note: A service specification belongs to at most one package. Each service_specification component claims its specification for this package, and the request fails with 409 when another package already claimed it. It also fails with 409 when the NRN already has a package with the same slug.
post/packages
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/packages
- AuthHTTP bearer
Request body
Example request
{
"nrn": "organization=1:account=2",
"slug": "my-scope",
"name": "My scope",
"visible_to": [
"organization=1:account=2"
],
"version": "1.0.0",
"components": [
{
"name": "spec",
"resource_type": "service_specification",
"resource_id": "7b2d1c5e-8f4a-4e3b-9c6d-1a2b3c4d5e6f",
"resource_revision_id": "0c9e8d7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f"
}
]
}Response
The created package.
Example response
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"nrn": "organization=1:account=2",
"slug": "my-scope",
"name": "My scope",
"visible_to": [
"organization=1:account=2"
],
"default_revision_id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
"default_version": "1.4.0",
"latest_revision_id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
"latest_version": "1.4.0",
"components": [
{
"name": "spec",
"resource_type": "service_specification",
"resource_id": "7b2d1c5e-8f4a-4e3b-9c6d-1a2b3c4d5e6f",
"resource_revision_id": "0c9e8d7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f"
}
],
"created_at": "2026-09-14T12:00:00.000Z",
"updated_at": "2026-09-14T12:00:00.000Z"
}Changes
- info
endpoint added
- info