/ngrx/record/swagger/index.html`
```
--------------------------------
### Example: Archer Cloud API DisplayFields Configuration
Source: https://help.archerirm.cloud/api_2025_08/content/api/webapi/result_display
This snippet demonstrates the XML structure for the 'DisplayFields' element, used to specify which fields should be displayed in the search results. It requires the 'DisplayField' sub-element for each field, identified by GUID or SQL field ID. This is one of two mutually exclusive methods for defining display settings.
```xml
12972
{0BDF0A10-F0FF-43B9-869B-6F5A00BF1DCC}
```
--------------------------------
### Login API
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/authentication
Logs in to create an Archer session using specified credentials.
```APIDOC
## Login
Login creates an Archer session using the specified credentials on the specified instance. The API request returns a serialized representation of a SessionContext object.
### Method
POST
### Endpoint
`http://Archer/platformapi/core/security/login`
### Request Body
- **InstanceName** (string) - Required - The name of the instance to log into.
- **Username** (string) - Required - The username for authentication.
- **UserDomain** (string) - Optional - The domain of the user.
- **Password** (string) - Required - The password for authentication.
### Request Example
```json
{
"InstanceName": "v5.0",
"Username": "sysadmin",
"UserDomain": "",
"Password": "Archer123"
}
```
### Response
#### Success Response (200)
- **SessionToken** (string) - The session token for subsequent requests.
#### Response Example
```json
{
"SessionToken": "C204E18D0ED58E288533F39C455A36E8"
}
```
```
--------------------------------
### Generate Package API Call Configuration
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/pkg_automation_api
Configures a REST API call to generate a package. The request specifies the package ID to be generated. The response indicates whether the generation was successful. Replace _ExampleWebServerIP_, _ExampleArcherInstanceName_, _ExampleSessionID_, and _ExamplePackageID_ with your specific details.
```json
POST http://_ExampleWebServerIP_ /_ExampleArcherInstanceName_ /api/core/package/generate/_ExamplePackageID_
Accept: application/json,text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Authorization: Archer session-id=_ExampleSessionID_
Content-Type: application/json
Host: localhost
Content-Length: 0
{
"Links": [],
"RequestedObject": {},
"IsSuccessful": true,
"ValidationMessages": null
}
```
--------------------------------
### XML Formatting for Record Creation/Update
Source: https://help.archerirm.cloud/api_2025_08/content/api/webapi/xml_formatting_guidelines_for_field_input
Provides guidelines for constructing XML to create or update records using Archerirm Cloud API methods.
```APIDOC
## XML Formatting Guidelines for Field Input
Much of the content data that is exchanged between the Web Services API and third-party applications is formatted using XML. This section provides the details of the XML format for the different field types when you use the `record.CreateRecord`, `record.CreateSubformRecord`, and `record.UpdateRecord` methods.
Adhere to the following guidelines when you construct XML to create or update records:
* The information that the API returns when you use the `record.GetRecordById` or `search.RetrieveSearchResultsPage` is different.
* The `id` attribute of every field element represents the unique ID of the field as documented in the Application Detail Report or in the results of the `record.GetRecordById` method.
* The `type` attribute of every field element represents the unique ID of the field type as documented in the Type ID column in the following table.
* To create or update records in a leveled application, all of the fields in your XML structure must reside within a single data level. If you have fields from 2 or more levels, you receive an error message.
* If you configure a Text, Numeric, Date, or Values List field as a calculated field, you cannot input data or select values in the field through the API. The field is read only.
* If a Record Permissions field is configured to use permission rules rather than to allow manual selection, you cannot select users or groups on the field through the API. The field is read only.
* Some fields support the `MultiValue` element as a way to provide multiple values. If you include a single value only, do not include the `MultiValue` sub-element and make the regular element empty.
* To create or update multiple records with `record.CreateRecords` or `record.UpdateRecords`, use the same XML input defined in this section and wrap the collection of individual records with the **``** tags.
* The XML elements that you provide can contain extra attribute-value pairs. The API uses only the required attribute-value pairs as documented in the following table.
### Field Input Examples
The following table provides examples of XML for field input.
| Field ID | Field Name | Example |
| :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | Text | **Sample XML:** `` The `value` attribute is in UTF-8 or UTF-16 when you use the Field control type.
**Sample XML:** `` If you are use the Area control type, you can insert encoded HTML text. |
| 2 | Numeric | **Sample XML:** `` If you have units of measure turned on, you express the value in the quantity of the smallest unit of measure, for example, 39 inches instead of 3 feet, 3 inches. |
| 3 | Date | **Sample XML:** ` ` If you specify the field as Date-only, and you do not specify the time, the API defaults to 12:00 AM. **Note:** To pass in a date field null value, enter a value of "0". For example: `` |
| 4 | Values List | **Sample XML:** ` ` The `value` attribute is the integer ID of the value (within the values list) as returned by the `field.LookUpListValue` method. **Important:** If the values list supports the use of other type values, supply the value of the value that is enabled for other text, along with the other text in an attribute called `otherText`. For example: `` **Note:** To pass in a values list null value, enter a value of "0". For example: `` |
| 7 | External Links | **Sample XML:** `` The `value` attribute is the text that is displayed in the field. The `link` attribute is the actual link value that you click to activate. |
| 8 | User/ Groups List | **Sample XML:** ` ` If you do not have any of either type of value, that is, no user or no group, you can omit that corresponding element (groups or users) rather than including an empty 1. Each member must be included as a separate value. The ID value is the `userId` (as returned by the `accesscontrol.LookupUserByFirstName` method) or the `groupId` (as returned by the `accesscontrol.LookupGroup` method). |
| 9 | Cross-Reference | **Sample XML:** ` ` |
```
--------------------------------
### Get Role Memberships - GET Request
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/user_mgt/user_mgt_role
Retrieves membership details for all roles, including associated users and groups, via a GET request to the Archer platform API.
```http
GET http://Archer/platformapi/core/system/rolemembership
Accept: application/json,text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Authorization: Archer session-id="*SessionToken"
Content-Type: application/json
```
--------------------------------
### Response Example from Archer Cloud API
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/user_mgt/user_mgt_role
A typical JSON response structure from the Archer Cloud API, indicating the success of an operation, including links, requested object details, and validation messages.
```json
{
"Links":[],
"RequestedObject":
{
"Id":1
},
"IsSuccessful":true,
"ValidationMessages":[]
}
```
--------------------------------
### HTTP GET Request for Level Metadata
Source: https://help.archerirm.cloud/api_2025_08/content/api/contentapi/contentapi_get_level_metadata
This snippet demonstrates a sample HTTP GET request to retrieve level metadata from the Archer Content API. It includes necessary headers like Host and Authorization.
```HTTP
GET /Archer/contentapi/Applications HTTP/1.1
Host: localhost
Authorization: Archer session-id=E5E1CEEDA26A199FE2CAE99755CB71DA
Cache-Control: no-cache
```
--------------------------------
### POST /core/system/user
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/user_mgt/user_mgt_user
Creates a new user with specified details. Requires first name, last name, and password. Default roles and language are applied if not specified.
```APIDOC
## Create user
### Description
The Create user resource creates a new user. Rules for creating users apply, including required fields and valid account statuses.
### Method
POST
### Endpoint
http://Archer/platformapi/core/system/user
### Parameters
#### Request Body
- **User** (object) - Required - Contains user details.
- **FirstName** (string) - Required - The first name of the user.
- **LastName** (string) - Required - The last name of the user.
- **AccountStatus** (integer) - Optional - Account status (1: Active, 2: Inactive, 3: Locked).
- **LanguageID** (integer) - Optional - The ID of the user's language.
- **Roles** (array) - Optional - An array of role IDs for the user.
- **Password** (string) - Required - The password for the new user.
### Request Example
```json
{
"User": {
"FirstName": "John",
"LastName": "Doe"
},
"Password": "NewUser2005!"
}
```
### Response
#### Success Response (200)
- **Links** (array) - Links related to the requested object.
- **RequestedObject** (object) - Contains the ID of the newly created user.
- **IsSuccessful** (boolean) - Indicates if the operation was successful.
- **ValidationMessages** (array) - Contains any validation messages.
#### Response Example
```json
{
"Links": [],
"RequestedObject": {
"Id": 1470
},
"IsSuccessful": true,
"ValidationMessages": []
}
```
```
--------------------------------
### Get Endpoints API Request - HTTP
Source: https://help.archerirm.cloud/api_2025_08/content/api/contentapi/contentapi_get_endpoints
This snippet demonstrates a sample HTTP request to the Get Endpoints API. It includes the necessary Host and Authorization headers, specifying the session ID for authentication.
```http
GET /Archer/contentapi/ HTTP/1.1
Host: localhost
Authorization: Archer session-id=E5E1CEEDA26A199FE2CAE99755CB71DA
Cache-Control: no-cache
```
--------------------------------
### ExecuteSearch C# Code Example
Source: https://help.archerirm.cloud/api_2025_08/content/api/webapi/executesearch
This C# code snippet demonstrates how to call the ExecuteSearch method. It requires a valid session token and an XML string for search criteria, returning the search results as a string.
```csharp
sReturnValue = search.ExecuteSearch(sSessionToken, sXML, 1);
```
--------------------------------
### Get Subform by ID
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/metadata_subform
Retrieves a Subform by its unique identifier using a GET request overridden via POST.
```APIDOC
## POST /platformapi/core/system/subform/*subformid*
### Description
This resource retrieves a Subform by the specified ID.
### Method
POST (with X-Http-Method-Override: GET)
### Endpoint
`http://Archer/platformapi/core/system/subform/*subformid*`
### Parameters
#### Path Parameters
- **subformid** (string) - Required - The ID of the subform to retrieve.
#### Request Header
- **Accept**: application/json,text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- **Authorization**: Archer session-id="*SessionToken"
- **Content-Type**: application/json
- **X-Http-Method-Override**: GET
### Request Example
```json
{
"message": "Example GET request for Subform by ID"
}
```
### Response
#### Success Response (200)
- **subformData** (object) - The retrieved subform data.
#### Response Example
```json
{
"subformData": {
"id": "*subformid*",
"name": "Example Subform",
"fields": [
{
"name": "Field 1",
"type": "text"
}
]
}
}
```
```
--------------------------------
### Get Role by User ID - GET Request
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/user_mgt/user_mgt_role
Fetches the specific role associated with a given user ID in the Archer instance using a GET request to the platform API. The user ID is a path parameter.
```http
GET http://localhost/Archer/platformapi/core/system/role/user/*userid*
Accept:application/json,text/html,application/xhtml+xml,application/xml;q=.9,*/*;q=0.8
Authorization: Archer session-id="*SessionToken"
Content-Type: application/json
```
--------------------------------
### Sample JSON Response for Applications List
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/webhelplanding
This snippet demonstrates a typical JSON response structure when requesting a list of applications, including details like Name, Description, and success status. The 'Description' field may contain HTML markup. This format is used for data exchange with the Archer API.
```json
[{
"Links": [],
"RequestedObject": {
"Name": "Technologies",
"KeepLicensed":false,
"IsDeprecated":false,
"Description": "The Technologies application provides a searchable and extensible repository of technology version information that can be leveraged to relate objects of like technology.
"
},
"IsSuccessful": true,
"ValidationMessages": []
},
{
"Links": [],
"RequestedObject": {
"Name": "Test Application 10",
"Description": null
},
"IsSuccessful": true,
"ValidationMessages": []
},
{
"Links": [],
"RequestedObject": {
"Name": "Test Application",
"Description": "This is my description"
},
"IsSuccessful": true,
"ValidationMessages": []
},
{
"Links": [],
"RequestedObject": {
"Name": "Test Application 2",
"Description": "This is my description"
},
"IsSuccessful": true,
"ValidationMessages": []
},
{
"Links": [],
"RequestedObject": {
"Name": "Test Application 3",
"Description": "This is my description"
},
"IsSuccessful": true,
"ValidationMessages": []
},
{
"Links": [],
"RequestedObject": {
"Name": "Mobile Packaging Application",
"Description": "This is my description"
},
"IsSuccessful": true,
"ValidationMessages": []
}]
```
--------------------------------
### Field Administration Activity Logs Report API Request Headers Example (HTTP)
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/admin_activity_logs_api
This snippet shows the necessary HTTP headers for making a request to the Field Administration Activity Logs Report API. It includes Content-Type, Authorization with a session token, Accept, and X-Http-Method-Override.
```http
Content-Type: application/json;odata.metadata=none
Authorization: Archer session-id="session token ID from login"
Accept: application/json,text/html,application/xhtml+xml,application/xml;q=.9,*/*;q=0.8
X-Http-Method-Override: GET
```
--------------------------------
### Get all applications
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/metadata_application
Retrieves metadata for all applications within the Archer platform. Note: This endpoint uses POST with X-Http-Method-Override: GET.
```APIDOC
## POST /platformapi/core/system/application
### Description
Retrieves metadata for all applications.
### Method
POST (with X-Http-Method-Override: GET)
### Endpoint
http://Archer/platformapi/core/system/application
### Parameters
#### Request Body
This endpoint does not require a request body for its intended GET operation.
### Request Example
```json
{
"example": "POST request to /platformapi/core/system/application with X-Http-Method-Override: GET header"
}
```
### Response
#### Success Response (200)
- **applications** (array) - A list of application metadata objects.
#### Response Example
```json
{
"example": "[ { \"id\": \"app1\", \"name\": \"Risk Management\" }, { \"id\": \"app2\", \"name\": \"Compliance\" } ]"
}
```
```
--------------------------------
### Generate Package API
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/pkg_automation_api
Generates a package by sending a POST request to the /api/core/package/generate/{ExamplePackageID} endpoint. This endpoint does not require a request body.
```APIDOC
## POST /api/core/package/generate/{ExamplePackageID}
### Description
Generates a package for download or further processing.
### Method
POST
### Endpoint
http://_ExampleWebServerIP_ /_ExampleArcherInstanceName_ /api/core/package/generate/_ExamplePackageID_
### Parameters
#### Path Parameters
- **ExamplePackageID** (string) - Required - The ID of the package to generate.
### Request Body
Not required.
### Response
#### Success Response (200)
- **Links** (array) - An array of links.
- **RequestedObject** (object) - An empty object upon successful generation.
- **IsSuccessful** (boolean) - Indicates if the operation was successful.
- **ValidationMessages** (array) - Can be null or an array of validation messages.
#### Response Example
```json
{
"Links": [],
"RequestedObject": {},
"IsSuccessful": true,
"ValidationMessages": null
}
```
```
--------------------------------
### POST /archer/platformapi/core/security/login
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/starting
This endpoint is used to log in to the Archer session and obtain a session token. It requires InstanceName, Username, and Password in the request body.
```APIDOC
## POST /archer/platformapi/core/security/login
### Description
Authenticates a user and retrieves a session token for subsequent API calls.
### Method
POST
### Endpoint
`/archer/platformapi/core/security/login`
### Parameters
#### Request Body
- **InstanceName** (string) - Required - The name of the Archer instance.
- **Username** (string) - Required - The username for authentication.
- **UserDomain** (string) - Optional - The domain of the user (if applicable).
- **Password** (string) - Required - The password for authentication.
### Request Example
```json
{
"InstanceName": "",
"Username": "",
"UserDomain": "",
"Password": ""
}
```
### Response
#### Success Response (200)
- **token** (string) - The session token obtained after successful login.
#### Response Example
```json
{
"token": ""
}
```
```
--------------------------------
### Get Role Memberships
Source: https://help.archerirm.cloud/api_2025_08/content/api/restfulapi/segmentsresources/user_mgt/user_mgt_role
The Get role memberships resource retrieves memberships for all roles.
```APIDOC
## GET /platformapi/core/system/rolemembership
### Description
Retrieves memberships for all roles, including users and groups.
### Method
GET
### Endpoint
http://Archer/platformapi/core/system/rolemembership
### Response
#### Success Response (200)
- **RoleMemberships** (array) - An array of role membership objects.
- **RoleId** (integer) - The ID of the role.
- **UserIds** (array) - An array of user IDs in the role.
- **GroupIds** (array) - An array of group IDs in the role.
#### Response Example
```json
[
{
"RoleId": 1,
"UserIds": [101, 102],
"GroupIds": [10, 20]
}
]
```
```