Created by potrace 1.16, written by Peter Selinger 2001-2019

Miva Developer Docs

This function updates an existing CSS Resource in Miva's CSS Resource Management.


Description#

This function updates an existing CSS Resource in Miva’s CSS Resource Management.

Request Parameters#

Parameter Type Required Description
CSSResource_ID
Edit_CSSResource
CSSResource_Code
Integer
String
String
One of these ID of the CSS resource
Code of the CSS resource
Code of the CSS resource. One of the three is required.
CSSResource_Code String No Updated code of the CSS resource. Must be unique.
CSSResource_Global Boolean No Whether the resource is global
CSSResource_Active Boolean No Whether the resource is active
CSSResource_File_Path String No File path of the resource, up to 254 characters. A file path is required for resources of type L or E.
CSSResource_Module_Code String Yes Code of the module that provides the resource. Only read for resources of type M or Y; required when either module field is sent.
CSSResource_Module_Data String Yes Module data, up to 100 characters. Only read for resources of type M or Y; required when either module field is sent.
CSSResource_Attributes Array Replaces the resource attributes. Each element has a required name and an optional value.

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "CSSResource_Update",
    "CSSResource_Code": "test",
    "CSSResource_File_Path": "themes/00000001/shadows/custom.css",
    "CSSResource_Global": true,
    "CSSResource_Active": true
}

Example Response#

{
    "success": 1
}