Target Nodes
User Data
Update an existing user data template
Changed onUpdate an existing user data template for target nodes
put/api/target_nodes/user_data
Request
- The document declares no server URL.
- AuthsocaAuth (a scheme the document does not define) and socaToken (a scheme the document does not define)
Headers
X-EDH-USERstring required
Example:admin
SOCA username for authentication
X-EDH-TOKENstring required
Example:abc123token
SOCA authentication token
Request body application/x-www-form-urlencoded
Example request
{
"template_id": "2",
"description": "Updated custom template description",
"user_data": "#!/bin/bash echo 'Updated script'"
}Response
User data template updated successfully
Example response
{
"success": true,
"message": "User Data Template has been updated successfully"
}Changes
- info
the endpoint scheme security
socaAuth AND socaTokenwas added to the API - info
the endpoint scheme security
edhAuth AND edhTokenwas removed from the API - info
added the non-success response with the status
- info
- info
the endpoint scheme security
edhAuth AND edhTokenwas added to the API - info
the endpoint scheme security
socaAuth AND socaTokenwas removed from the API
- info