Load compcode list
This API retrieves the list of company codes available to which users can be assigned, and is used by administrators.
Example API call
/servlets3/wietmsd?id=1459755986251&book=s1000d_bike_41&collection=default&target=admin&action=get_compcode_list
Parameters
| Parameter | Description |
|---|---|
target | admin |
action | get_compcode_list |
id | A session ID that is valid for this collection and publication combination. |
book | The name of the publication, such as s1000d_bike_41. |
collection | The name of the collection that the publication is registered in, such as default. |
Returns
- On success
-
<COMPCODES> <COMPCODEBODY> <COMPCODEITEM COMPCODE_ID=’id’> <COMP_CODE>CODE</COMP_CODE> <COMP_NAME>NAME</COMP_NAME> </COMPCODEITEM> </COMPCODEBODY> </COMPCODES> - On failure
-
<COMPCODES></COMPCODES>