Create an asset
Changed onCreates a new asset.
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/asset
- AuthHTTP bearer
Request body
Example request
{
"type": "docker-image",
"url": "https://example.com/my-asset.jpg",
"name": "My asset",
"build_id": 345,
"application_id": 234,
"commit-sha": "1234",
"metadata": {
"key": "value"
},
"platform": "arm_64"
}Response
The operation was successful.
Example response
{
"id": 123,
"name": "My Asset",
"build_id": 345,
"type": "docker-image",
"platform": "arm_64",
"url": "https://example.com/my-asset.jpg",
"nrn": "organization=1:account=2:namespace=4:application=4:build=345:asset=123",
"branch": "main",
"commit": {
"id": 234,
"permalink": "https://example.com/1234"
}
}Changes
- breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
response property
messagedeprecated - info
response property
messagedeprecated - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking