Documentation > Access API > AssetController > accessapi/Asset/Exists

accessapi/Asset/Exists

Checks if an asset with the supplied assetId or assetPath exists in the CMS.

POST

https://cms.crownpeak.com/[Your Instance]/cpt_webservice/accessapi/Asset/Exists


Request Information

URI Parameters

None.

Body Parameters

The parameters sent as post data.

AssetExistsRequest

NameDescriptionType
assetIdOrPath

System.String

Request Formats

application/json

Sample:
/* Example with asset id */
{
    "assetIdOrPath" : 4559
}

/* Example with path */
{
    "assetIdOrPath" : "/System/Templates"
}
            



Response Information

Resource Description

AssetExistsResponse

NameDescriptionType
assetId

System.Int32
exists

System.Boolean
ResultCode

eResultCodes
ErrorMessage

System.String
InternalCode

System.Int32
IsSuccessful

System.Boolean

Response Formats

application/json

Sample:
            
            {
              "exists": true,
              "resultCode": "conWS_Success",
              "errorMessage": "",
              "internalCode": 0
            }
            
            

Connect with Crownpeak