Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Trying to create a SR with POST returns a GET response

    Posted 09/18/24 10:51 AM

    Hi All,

    On Maximo Manage 8.11.11 I'm trying to create a SR using Postman. However the reponse I get is '200 OK' not a '201 Created' and the Body looks like a response to a GET

    "member": [
    {
    "href": "http://workspace.manage.xxx-dev.maxxxx.xx/maximo/api/os/mxapisr/_U1IvU1IxMDAxMjY-"
    },
    {
    "href": "http://workspace.manage.xxx-dev.maxxxx.xx/maximo/api/os/mxapisr/_U1IvU1IxMDA0ODA-"
    ...


    The following is used to create the SR:

    Method: POST
    URL: http://workspace.manage.xxx-dev.maxxxx.xx/maximo/api/os/mxapisr?lean=1&apikey=7f3sgnsbi22s46da8ahaajujas2mjkc4b54iro23
    Content-Type: application/json
    Body:

    {
    "description": "Hello Maximo"
    }

    This happens on a environment where we restored a backup of a 7.6 instance and subsequently ran updatedb. If I run the same post against a new 'empty' MAS 8 instance then the SR gets created.

    any help, hints and tips are much appreciated!

    BR Jeroen





    ------------------------------
    Jeroen van Proosdij
    ------------------------------


  • 2.  RE: Trying to create a SR with POST returns a GET response

    Posted 09/23/24 05:55 AM

    Found the solution: Use https instead of http in the POST and the SR gets created.



    ------------------------------
    Jeroen van Proosdij
    ------------------------------