POST api/Object?model={model}&method={method}

Executes a method for a list of ids/Führt eine Methode für eine Liste von IDs aus

Request Information

Parameters

NameDescriptionAdditional information
model
The model name of the table/Modellname der Tabelle
            Example: eq.spooltable

Define this parameter in the request URI.

method
Name of the method/Name der Methode
            Example: do_print

Define this parameter in the request URI.

inputData
Contains the authentication token from Login and the ids for the method call/Enthält den Anmeldetoken und die IDs für die die Methode ausgeführt wird

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "AuthToken": "your authentication token",
  "IDs": [
    2,
    5,
    8
  ]
}

application/xml, text/xml

Sample:
<ExecuteMethodForIDsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/openErpRestApi.Models">
  <AuthToken>your authentication token</AuthToken>
  <IDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>2</d2p1:int>
    <d2p1:int>5</d2p1:int>
    <d2p1:int>8</d2p1:int>
  </IDs>
</ExecuteMethodForIDsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>