Creating Asset Types
Creating an Asset Type
Creating Asset Type - Hero
POST api.skyledge.com/asset-types
{
"identifier":"hero",
"name":"Hero",
"description":"A HP Inc consumer"
}
curl --location --request POST 'https://api.skyledge.com/asset-types' \
--header 'X-Authorization: API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"identifier":"hero",
"name":"Hero",
"description":"A HP Inc consumer"
}'import { Configuration, AssetTypeRequest, AssetTypesApi } from '@skyledge/sdk';
const configuration = new Configuration({
apiKey: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX',
basePath: 'https://api.skyledge.com',
});
const data: Partial<AssetTypeRequest> = {
"identifier":"hero",
"name":"Hero",
"description":"A HP Inc consumer"
};
const assetTypeApi = new AssetTypesApi(configuration);
const newAssetType = await assetTypeApi.createAssetType(data);
console.log(newAssetType.status);
Last updated