Create a Custom copy via REST API or iem.exe wrapper

OK, I have a list of fixlet ID’s I queried from the external sites CIS Checklist* if they are activated. Either way its fixlet id’s.

I also have the script creating the “Checklist Custom Site”.

How do i take that list and copy those fixlets to my newly created custom site via REST API or better yet iem.exe REST API wrapper?

my file has ids list like this: Fixlet ID’s

124155
124160
124161
124169
124174
124176
124179
124188
124193
124198
124200
124203
124204
124205
124207
124208
124210
124221
124222
124225
124226

Thanks in advance.

You would use the following to get the XML of the original fixlet:

GET fixlet/{site type}/{site name}/{fixlet id}

so for 1 of the examples:

/api/fixlet/external/CIS_WHATEVER/124155


Then to create that same fixlet in a custom site you would POST the XML from the above to:

fixlets/{site type}/{site name}

which would be something like:

/api/fixlets/custom/NAME_OF_SITE