Application Service API
-
- UpdatedJan 30, 2025
- 13 minutes to read
- Yokohama
- API reference
The Application Service API provides endpoints that enable you to create, modify, and update application services.
This API requires that the user have the Application Service administrator [app_service_admin] role.
Application Service - GET /now/cmdb/app_service/{sys_id}/getContent
Retrieves a list of configuration items (CI) in a mapped application service and the relationships between them. Only retrieves content for services that were manually created.
URL format
Default URL: /api/now/cmdb/app_service/{sys_id}/getContent
Supported request parameters
Name | Description |
---|---|
sys_id | Sys_id of the mapped application service. Data type: String Table: Mapped Application Service [cmdb_ci_service_discovered] |
Name | Description |
---|---|
Mode | Amount of relationship data to return. Valid values: The values are not case-sensitive.
Data type: String |
Name | Description |
---|---|
None |
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 |
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)
Example: Sample cURL request
Application Service - GET /now/cmdb/csdm/app_service/find_service
Returns basic information about a specified application service and its associated business context.
URL format
Default URL: /api/now/cmdb/csdm/app_service/find_service
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
name | Required, if number is not passed in. Name of the service for which to return information. Data type: String Table: Service Instance [cmdb_ci_service_auto] |
number | Required, if name is not passed in. Unique number that identifies the application service for which to return information. Data type: String Table: Service Instance [cmdb_ci_service_auto] |
Name | Description |
---|---|
None |
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. Only supports 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)
Example: Sample cURL request
Application Service - POST /now/cmdb/app_service/create
Creates an application service or update an existing application service.
URL format
Default URL: /api/now/cmdb/app_service/create
Supported request parameters
Parameter | Description |
---|---|
None |
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 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.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected. |
401 | Unauthorized. The user credentials are incorrect or have not been passed. |
Request body
The API accepts these JSON elements in the request body. In addition, you can add any field
from the Mapped Application Service [cmdb_ci_service_discovered] table to pass data to the
application service record. For example, to add content to the Comments field, add
"comments": "Passing data to the Comments field"
to the JSON request.
Response body
The API returns these JSON elements in the response body.
Example: Sample cURL request
Application Service - POST /now/cmdb/csdm/app_service/register_service
Creates an application service record stub in the Service Instance [cmdb_ci_service_auto] table and populates it with the passed in information.
URL format
Default URL: /api/now/cmdb/csdm/app_service/register_service
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
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. Only supports application/json. |
Content-Type | Data format of the request body. Only supports 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)
Example: Sample cURL request
Application Service - PUT /now/cmdb/csdm/app_service/{service_sys_id}/populate_service
Populates the specified application service with a specified set of downstream configuration items (CI).
URL format
Default URL: /api/now/cmdb/csdm/app_service/{service_sys_id}/populate_service
Supported request parameters
Name | Description |
---|---|
service_sys_id | Sys_id of the application service to populate with the specified CIs. Data type: String Table: Service Instance [cmdb_ci_service_auto] |
Name | Description |
---|---|
None |
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. Only supports application/json. |
Content-Type | Data format of the request body. Only supports 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.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
401 | Unauthorized. The user credentials are incorrect or they do not have the app_service_admin role. |
500 | Internal server error. An unexpected error occurred while processing the request. |
Response body parameters (JSON or XML)
Name | Description |
---|---|
error | Describes an encountered error. Data type: Object |
error.details | Additional information about the error. Data type: String |
error.message | Message describing the error. Data type: String |
Example: Sample cURL request
The following code example shows how to populate an application service when the CI type is cmdb_group_based.
The following code example shows how to populate a discovery application service.
Application Service - PUT /now/cmdb/csdm/app_service/{service_sys_id}/service_details
Updates the specified application service with the passed in basic information.
URL format
Default URL: /api/now/cmdb/csdm/app_service/{service_sys_id}/service_details
Supported request parameters
Name | Description |
---|---|
service_sys_id | Sys_id of the application service to updated. Data type: String Table: Service Instance [cmdb_ci_service_auto] |
Name | Description |
---|---|
None |
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. Only supports application/json. |
Content-Type | Data format of the request body. Only supports 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.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
401 | Unauthorized. The user credentials are incorrect or they do not have the app_service_admin role. |
Response body parameters (JSON or XML)
Name | Description |
---|---|
error | Describes an encountered error. Data type: Object |
error.details | Additional information about the error. Data type: String |
error.message | Message describing the error. Data type: String |
Example: Sample cURL request
On this page
- Application Service - GET /now/cmdb/app_service/{sys_id}/getContent
- Application Service - GET /now/cmdb/csdm/app_service/find_service
- Application Service - POST /now/cmdb/app_service/create
- Application Service - POST /now/cmdb/csdm/app_service/register_service
- Application Service - PUT /now/cmdb/csdm/app_service/{service_sys_id}/populate_service
- Application Service - PUT /now/cmdb/csdm/app_service/{service_sys_id}/service_details