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

accessapi/Asset/Update

Modifies the content fields of an asset within the CMS.

POST

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


Request Information

URI Parameters

None.

Body Parameters

The parameters sent as post data.

AssetUpdateRequest

NameDescriptionType
assetId

System.Int32
fields

Dictionary<System.String, System.String>
fieldsToDelete

Used to delete fields throught the AccessAPI. Populate this list with the field_name of the fields to be deleted. Deletion will occur on update.

System.Collections.Generic.List<System.String>

Request Formats

application/json

Sample:

            
            {
              "assetId": 4559,
              "fields": {
                "_last__cms_mcepicker": "",
                "_last_image_path": "/AdventGeneral/",
                "_last_selection_path": "/AdventGeneral/",
                "cp-languages": "English:-1",
                "duplicate_id": "100175",
                "id": "2287",
                ...
              }
            }
            
            



Response Information

Resource Description

Response Formats

application/json

Sample:

            
            {
              "asset": {
                "fullPath": null,
                "iconType": "Asset",
                "isFlagged": false,
                "iconTypeValue": null,
                "isWcoIntegrated": false,
                "permissionList": "0100011111100001110011110000100010001011000100001110000000000111000000011100000111000001000000000001000000",
                "hasCSharpInput": true,
                "id": 4559,
                "taskCount": 0,
                "error_code": 0,
                "branchId": 2524,
                "label": "401(k) Plans-renamed",
                "type": 2,
                "folder_id": 1801,
                "workflow_id": 11,
                "workflow_step": 5,
                "version_id": 13335,
                "status_user_id": 11,
                "status": 783,
                "status_date": "2014-10-09T15:36:46.88",
                "owner_user_id": 0,
                "creator_user_id": 11,
                "storage_id": null,
                "extension": "",
                "create_date": "2014-02-17T16:40:40",
                "modified_user_id": 11,
                "modified_date": "2014-10-28T22:47:31.737",
                "checkout_user_id": 0,
                "checkout_date": "2014-10-06T15:57:26.077",
                "error_msg": null,
                "size": 2344,
                "template_id": 1917,
                "template_label": "Content Page",
                "acl_id": 806,
                "change_date": "2014-10-28T22:47:31.737",
                "change_user_id": 11,
                "child_id": 4559,
                "base_model_id": 2274,
                "model_id": null,
                "deploy_id": 0,
                "is_deleted": null,
                "is_hidden": null,
                "publish_date": "2014-10-09T15:36:59",
                "publish_user_id": 11,
                "template_language": 1,
                "subtype": 0,
                "statusName": "Stage",
                "statusColor": "BCE9C9",
                "ownedBy": null,
                "createdBy": "CrownPeak Admin",
                "modifiedBy": "CrownPeak Admin",
                "lastPublishedBy": "CrownPeak Admin",
                "statusChangedBy": "CrownPeak Admin",
                "changedBy": "CrownPeak Admin",
                "checkedOutBy": null,
                "templateSubType": null,
                "isQueued": false,
                "hasPeriodicSchedule": false,
                "hasWorkflowSchedule": false,
                "approvedWorkflowFilters": null
              },
              "resultCode": "conWS_Success",
              "errorMessage": "",
              "internalCode": 0
            }
            
            

Connect with Crownpeak