Modify Route Entry by Id
put
/{versionId}/routeSets/{routeSetId}/entries/{entryId}
Use this (PUT) method to modify route set entry details based on specified ID that exist on the SDM server. user has to provide route set Id, route entry id as part of uri and route info as part of request body to update the specified route entry details.
Request
Path Parameters
-
entryId:
The id of the route which needs modification.
-
routeSetId:
The route set whose route entry needs modification.
-
versionId:
The rest api version, it's value is v1.3.
Response
200 Response
400 Response
The user input is invalid.
401 Response
The session ID is invalid.
403 Response
There is no permission to access the resources.
404 Response
The object (resource URI, device, and so on) of your input request cannot be found.
500 Response
Internal server error
Examples
Example of Accessing the API with cURL
The following example shows how to modify route entry by id by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X PUT \
-b sessionid.txt \
--header "Accept: application/xml" \
--header "Content-Type: application/xml" \
"https://example.com:8443/rest/v1.3/routeSets/{routeSetId}/entries/{entryId}"
Example of Accessing the API with Python
The following example shows how to modify route entry by id by submitting a PUT request on the REST resource using Python. This example assumes the cookie
variable contains a valid authentication cookie. For an example of authenticating with Python, see Authenticate.
import requests
url = "https://example.com:8443/rest/v1.3/routeSets/{routeSetId}/entries/{entryId}"
headers = { "Accept":"application/xml", "Cookie":cookie }
resp = requests.put(url, headers=headers)
Example of the Response Body
This endpoint does not return a response body.