XPP REST Client Query Para

What should a query string format be to execute a POST against XPP Server via XPP Rest API client? The help does not make much sense. When executed, it is asking for a Process ID number 

Run XPP commands on a Division or Job.

NOTE: The 'command' parameter is the program to run and must be located in the 'xz/bin' directory. For example, divtrace, divflags, show_xref, see Command Line Utilities

The caller is responsible for all options.

GET

/xpp/docs/:path/processes/command

Parameter

Field Type Description
command String

The name of the XPP commmand (in xz/bin) to run

optionsoptional String

Additional 'command' options

ecodeoptional String

error code for exit criteria 1 => OK if 0 >= exitcode < 128 (default=0)

path String

The "logical" 4/5-part path to a Division or Job in the form "handle:class:group:job:div"

nowaitoptional String

If "nowait=true", the command will return immediately with the id, code, and time the command started (default="false"). The user can check for command completion, by using the 'xpp/docs/processes/id' endpoint; where 'id' is the id used to get the status of the running program (default="false"). See Command Status for the command to determine the status of a 'nowait' program.

Allowed values: "true", "false"

emoji
Parents
  • Hi all,

    Good news! I have found the solution. The fix was in the options arguments and the query format string. I was not only able to get successful compose command using a REST API call but also execute the sdedit. See the correct query string format with options below:

    servername:2995/.../sdedit div -aout MattTaylor -xml

    emoji
  • Matt,

    It all depends if the software you are using is doing the url encoding for you are not.
    The real command that gets send is using url encoding in which the spaces are replaced by %20.
    Apparently in your case the software you were using was doing the url encoding for you..

    But hey I am glad you got things to work for you.
    It is a nice (and easy once you found out how it works) way of driving the system, don't you think so?

    emoji
Reply
  • Matt,

    It all depends if the software you are using is doing the url encoding for you are not.
    The real command that gets send is using url encoding in which the spaces are replaced by %20.
    Apparently in your case the software you were using was doing the url encoding for you..

    But hey I am glad you got things to work for you.
    It is a nice (and easy once you found out how it works) way of driving the system, don't you think so?

    emoji
Children
No Data