Sha256: e2f6d0034f2cfb4cab312f944d1d283a70c7af2bd093544acad7344c40499b82
Contents?: true
Size: 694 Bytes
Versions: 10
Compression:
Stored size: 694 Bytes
Contents
module Mrkt module CrudAssetStaticLists def create_static_list(name, folder, description: nil) post('/rest/asset/v1/staticLists.json') do |req| params = { name: name, folder: JSON.generate(folder) } optional = { description: description } req.body = merge_params(params, optional) end end def get_static_list_by_id(id) get("/rest/asset/v1/staticList/#{id}.json") end def get_static_list_by_name(name) get('/rest/asset/v1/staticList/byName.json', name: name) end def delete_static_list(id) post("/rest/asset/v1/staticList/#{id}/delete.json") end end end
Version data entries
10 entries across 10 versions & 1 rubygems