Skip to content

Update Asset

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/assets/:asset_id

Update an asset using the the numeric ID of the asset.

  • :space_id required number

    Numeric ID of a space

  • :asset_id required string

    Numeric id of an asset

curl "https://mapi.storyblok.com/v1/spaces/123123/assets/656565" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"asset_folder_id\":123123,\"internal_tag_ids\":[1111],\"is_private\":true,\"locked\":false,\"meta_data\":{\"alt\":\"Asset ALT\",\"copyright\":\"Custom Text\",\"source\":\"Asset Source\",\"title\":\"Asset Title\"},\"publish_at\":\"2024-05-31T11:52:00.000Z\"}"