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

accessapi/Asset/Route

Move an asset from one workflow state to another.

POST

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


Request Information

URI Parameters

None.

Body Parameters

The parameters sent as post data.

AssetRouteRequest

NameDescriptionType
assetId

System.Int32
PublishDependencies

Specifies whether dependencies of the asset should be published if the asset is published. If not defined or null, this defaults to true.

System.Boolean?
stateId

System.Int32

Request Formats

application/json

Sample:

            
            {
              "assetId": 4558,
              "stateId": 785
            }
            
            



Response Information

Resource Description

AssetRouteResponse

NameDescriptionType
ResultCode

eResultCodes
ErrorMessage

System.String
InternalCode

System.Int32
IsSuccessful

System.Boolean

Response Formats

application/json

Sample:

            
            {
              "resultCode": "conWS_Success",
              "errorMessage": "",
              "internalCode": 0
            }
            
            

Connect with Crownpeak