DevOps Config API
-
- UpdatedJan 30, 2025
- 9 minutes to read
- Yokohama
- API reference
The DevOps Config API provides endpoints to manage your applications.
This API requires the DevOps Config application and is provided within the
sn_devops_config
namespace.
For DELETE, PATCH, and POST operations, the calling user must have the sn_devops_config.admin role. For GET operations, the calling user must have the sn_devops_config.viewer or sn_devops_config.admin role.
Use the DevOps Config API for application life cycle management. For more information about managing applications with DevOps Config, see Configuring DevOps Config.
DevOps Config - DELETE /devops_config/application/{appid}
Deletes an application.
URL format
Versioned URL: /api/sn_devops_config/{api_version}/devops_config/application/{appid}
Default URL: /api/sn_devops_config/devops_config/application/{appid}
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 |
appid | Sys_id of the application to delete. Data type: String Table: CDM Application [sn_cdm_application] |
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. |
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. |
400 | Bad request. Invalid application id. |
403 | Forbidden. The user doesn't have permission to access the API. |
Response body parameters (JSON)
Example: cURL request
This example deletes an application.
Response body.
Example: cURL request
This example shows an error response when a user doesn't have permission to access the API.
Error response.
DevOps Config - GET /devops_config/application/{appid}
Retrieves an application.
URL format
Versioned URL: /api/sn_devops_config/{api_version}/devops_config/application/{appid}
Default URL: /api/sn_devops_config/devops_config/application/{appid}
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 |
appid | Sys_id of the application to retrieve. Data type: String Table: CDM Application [sn_cdm_application] |
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. |
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. |
400 | Bad request. Invalid application id. |
403 | Forbidden. The user doesn't have permission to access the API. |
Response body parameters (JSON)
Example: cURL request
This example retrieves an application.
Response body.
Example: cURL request
This example shows an error response when a user provides an invalid application id.
Error response.
DevOps Config - PATCH /devops_config/application/{appid}
Updates an application.
URL format
Versioned URL: /api/sn_devops_config/{api_version}/devops_config/application/{appid}
Default URL: /api/sn_devops_config/devops_config/application/{appid}
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 |
appid | Sys_id of the application to update. Data type: String Table: CDM Application [sn_cdm_application] |
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 | Application successfully updated. |
403 | Forbidden. The user doesn't have permission to access the API. |
404 | Application not updated. The message property in the result object contains additional information about the error. |
Response body parameters (JSON)
Example: cURL request
This example updates an existing application.
Response body.
DevOps Config - POST /devops_config/application
Creates an application.
URL format
Versioned URL: /api/sn_devops_config/{api_version}/devops_config/application
Default URL: /api/sn_devops_config/devops_config/application
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 |
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 |
---|---|
201 | Application successfully created. |
403 | Forbidden. The user doesn't have permission to access the API. |
404 | Application not created. The message property in the result object contains additional information about the error. |
Response body parameters (JSON)
Example: cURL request
This example shows how to create a new application.
Response body.