Documentation > Access API > AssetController > accessapi/Asset/TemplateProfile
accessapi/Asset/TemplateProfile
Returns a template profiling data containing performance diagnostics.
POST
https://cms.crownpeak.com/[Your Instance]/cpt_webservice/accessapi/Asset/TemplateProfileRequest Information
URI Parameters
None.
Body Parameters
The parameters sent as post data.
TemplateProfileRequest
Name | Description | Type |
---|---|---|
assetId | The id of the requested asset. |
System.Int32 |
layoutName | The desired rendering layout (i.e. output.aspx, input.aspx). |
System.String |
Request Formats
application/json
Sample:
{ "assetId": 33395, "layoutName": "output" }
Response Information
Resource Description
TemplateProfileResponse
Name | Description | Type |
---|---|---|
ResultCode | eResultCodes | |
ErrorMessage | System.String | |
InternalCode | System.Int32 | |
IsSuccessful | System.Boolean | |
templateProfile | CrownPeakApp.Model.TemplateProfileData |
Response Formats
application/json
Sample:
{ "resultCode": "conWS_Success", "templateProfile": { "userId": 11, "assetId": 33395, "templateId": 33283, "templateVersionId": 29009, "parentTemplateId": -1, "executionDate": "2015-10-30T16:22:32.2226262-07:00", "templateName": null, "pluginName": null, "executionTime": "0.21240", "throttledTime": "0.00", "apiCalls": [ { "name": "CrownPeak.CMSAPI.Asset.GetFilterList", "usageCount": 2, "accumulatedTimeTaken": 0.15852, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.GetFileList", "usageCount": 1, "accumulatedTimeTaken": 0.00417, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.LoadDirect", "usageCount": 3, "accumulatedTimeTaken": 0.00283, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.GetSiteRoot", "usageCount": 1, "accumulatedTimeTaken": 0.00221, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.Load", "usageCount": 11, "accumulatedTimeTaken": 0.00181, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.GetField", "usageCount": 1, "accumulatedTimeTaken": 0.00108, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.GetContentFields", "usageCount": 1, "accumulatedTimeTaken": 0.00063, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.GetLink", "usageCount": 8, "accumulatedTimeTaken": 0.00048, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.GetPanels", "usageCount": 3, "accumulatedTimeTaken": 0.00016, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Asset.AddDependencyTo", "usageCount": 1, "accumulatedTimeTaken": 0.0, "accumulatedTimeThrottled": 0.0 }, { "name": "CrownPeak.CMSAPI.Out.Wrap", "usageCount": 1, "accumulatedTimeTaken": 0.0, "accumulatedTimeThrottled": 0.0 }, { "name": "Other Non-API", "usageCount": 0, "accumulatedTimeTaken": 0.040510000000000018, "accumulatedTimeThrottled": 0.0 } ] }, "errorMessage": "", "internalCode": 0 }