As usual, Steven is right-on.
The other option is to write an automation script that runs the Work Order Generation routine for a PM, and then call that automation script from the REST API as part of your test cases. Something like:
POST https://<maximourl>/maximo/api/script/WOGEN?lean=1&pmnum=1001&siteid=BEDFORD
apikey: <apikey>
... would call an automation script in Maximo called WOGEN and pass in parameters for PMNUM and SITEID.
Hope this helps,
------------------------------
Alex Walter
A3J Group LLC
------------------------------
Original Message:
Sent: 07-14-2025 13:16
From: Theo Pozzy
Subject: How to create work order from PM using REST API
I need to create a Maximo work order from a Preventive Maintenance (PM) record using the REST API. I am using the built-in MXPM object structure. My understanding is that you need to use "_action=generateWorkorder" to invoke the action to generate the work order. When I do that, I get a 204 response, but no work order gets created. Are there other parameters or headers needed to get this to work?
#Integrations
------------------------------
Theo Pozzy
OneGas
------------------------------