Create Asset

POST
Create an asset on the asset library.

Request

This endpoint expects an object.
asset_typeenumRequired
Asset type. It is used to distinguish between different supported assets.
dataobjectRequired
Asset data. It shows the type of data for an asset.
namestringRequired
Asset name. A unique name for the asset.
descriptionstringOptional
Asset description. It is used to provide more information.
hf_repostringOptional
HuggingFace repository.
hf_token_secretstringOptional
OctoAI secret name for HuggingFace token.
is_publicbooleanOptional
True if asset is public.
skip_validationbooleanOptional
Skip asset validation.
transfer_api_typeenumOptional
Allowed values: presigned-urlstsgcp-oauthany
Transfer API type.
urlstringOptional
Upload the contents of the url as the asset.

Response

This endpoint returns an object.
assetobject
Asset.
transfer_apiobject
Asset transfer API type.
tokenstringOptionalDefaults to Deprecated
Unused. Present for compatibility purposes.