SAM-Software Usage Data Integration API
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- API reference
The SAM-Software Usage Data Integration API provides endpoints to create and update records in the Software Usage [samp_sw_usage] table.
This API requires activation of the Software Asset Management Professional (com.snc.samp) plugin. It also requires that you have either the sam_admin or sam_developer role to access the endpoint.
SAM-Software Usage Data Integration - POST /sam_software_usage_integration/createOrUpdate
Creates or updates a specified record in the Software Usage [samp_sw_usage] table.
You can create/update one or more software usage records in a single call.
URL format
Versioned URL: /api/now/{api_version}/sam_software_usage_integration/createOrUpdate
Default URL: /api/now/sam_software_usage_integration/createOrUpdate
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
Name | Description |
---|---|
items | List of column names and values for each field to store in the software usage
record. The column information that you must pass depends on the value you specify for reclamation_type (which is a required field): Possible reclamation_type values and the column
information that must be passed:
The combination of these fields uniquely identify a record. If the record is not found in the table, a new record with the specified fields is created; otherwise the existing record is updated. Data type: Array |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Response body parameters (JSON or XML)
Name | Description |
---|---|
items | Name-value pair list of all fields in the software usage record. Data type: Array (content varies) |
Example: cURL request
The following example illustrates how to create a new software usage record.
Example
The following example illustrates how to update multiple software usage records in a single call.