CdmEditorApi
-
- UpdatedJan 30, 2025
- 25 minutes to read
- Yokohama
- API reference
The CdmEditorApi provides endpoints that enable you to create nodes, update nodes, include existing nodes under other nodes, delete nodes, and retrieve nodes and node includes.
- Scripted REST CDM View ACL (sn_cdm.cdm.viewer)
- Scripted REST CDM Editor ACL (sn_cdm.cdm_editor)
To view fields that have been encrypted, you must have the CDM Secret role.
In addition, the Configuration Data Management (CDM) plugin must be activated for this API to be available in an instance.
CdmEditorApi - DELETE /sn_cdm/editor/nodes
Deletes a specified node.
The caller of this endpoint must have the CDM Editor role.
URL format
Versioned URL: /api/sn_cdm/{api_version}/editor/nodes
Default URL: /api/sn_cdm/editor/nodes
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 |
---|---|
changesetNumber | Required. Unique identifier of the associated changeset, such as "Chset-10". Data type: String Table: CDM Changeset [sn_cdm_changeset] |
fullNamePath | Required. Path name of the node to delete. You can pass the name path in any of the following formats. For example, to delete the following node
testApp/deployables/Development1/cdi1 :
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. |
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. A bad request type or malformed request was detected. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters
Name | Description |
---|---|
None |
Example: cURL request
The following code example shows how to delete the node "cdi88".
Return result:
CdmEditorApi - GET /sn_cdm/editor/includes
Returns the list of nodes that were include within a specified node path.
The caller of this endpoint must have the CDM Viewer role.
URL format
Versioned URL: /api/sn_cdm/{api_version}/editor/includes
Default URL: /api/sn_cdm/editor/includes
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 |
---|---|
changesetNumber | Unique identifier of the associated changeset, such as "Chset-10". Data type: String Table: CDM Changeset [sn_cdm_changeset] |
returnFields | List of fields to return as part of the response. Pass the record column names such as sys_id, sys_updated_by, or state. Data type: Array Default: All fields as determined by the endpoint |
sourceFullNamePath | Required. Path name of the source node for which to return the included nodes. You can pass the name path in any of the following formats. For example, to return the includes for the
collectionA node in the testApp/collections directory:
Data type: String |
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. A bad request type or malformed request was detected. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters
Example: cURL request
This code example shows how retrieve the includes in the source path /testApp/collections/collA.
Return result:
CdmEditorApi - GET /sn_cdm/editor/nodes
Returns the details of a specified node or a list of child Configuration Data Management (CDM) nodes for a specified parent node.
The caller of this endpoint must have the CDM Viewer role.
URL format
Versioned URL: /api/sn_cdm/{api_version}/editor/nodes
Default URL: /api/sn_cdm/editor/nodes
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. |
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. A bad request type or malformed request was detected. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters
Example: cURL request
This code example shows how to retrieve the child nodes of type sn_cdm_node_cdi under the /testApp/Fdeployables/Development_1 parent node.
Return result:
CdmEditorApi - POST /sn_cdm/editor/includes
Includes an existing node into another node, such as a component node into a collection node or a collection node into a deployable node. After including a node, the new node has its own unique sys_id and main_Id.
The caller of this endpoint must have the CDM Editor role.
URL format
Versioned URL: /api/sn_cdm/{api_version}/editor/includes
Default URL: /api/sn_cdm/editor/includes
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 |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters
Example: cURL request
The following code example shows how to include the node /testApp/collections/collA under /testApp/deployables/Development_1.
Return result:
CdmEditorApi - POST /sn_cdm/editor/nodes
Creates a specific type of node, such as component, collection, folder, configuration data item (CDI), or variable.
You can also specify whether to automatically generate any parent nodes that are not currently defined.
The caller of this endpoint must have either the CDM Editor or CDM Secret role.
URL format
Versioned URL: /api/sn_cdm/{api_version}/editor/nodes
Default URL: /api/sn_cdm/editor/nodes
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 |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters
Example: cURL request
The following code example shows how to create a node using this endpoint.
Return result:
CdmEditorApi - PUT /sn_cdm/editor/nodes
Updates the name and/or value of a specified node.
The caller of this endpoint must have either the CDM Editor or CDM Secret role.
URL format
Versioned URL: /api/sn_cdm/{api_version}/editor/nodes
Default URL: /api/sn_cdm/editor/nodes
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 |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters
Example: cURL request
The following code example shows how to update the value of a node.
Return result: