PATCH
/cloud-init-scripts/{uuid}Update a cloud-init script
Updates a cloud-init script identified by its UUID. Send name, script, or both to change the corresponding script details; both fields can be omitted. A 200 response confirms that the script was updated.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
uuidstringrequired
The UUID of the cloud-init script to update.
Cloud-init script fields to update; both fields are optional.
namestringoptional
The updated name for the cloud-init script.
scriptstringoptional
The updated script content.
200Returns confirmation that the cloud-init script was updated.
401Returned when the request is unauthenticated.
messagestringoptional
403Returned when the authenticated user is forbidden from updating the script.
404Returned when the cloud-init script is not found.
messagestringoptional
422Returned when the request fails validation.
errorsobjectoptional
messagestringoptional
Error handling
A 401 is returned when the request is unauthenticated; a 403 is returned when the authenticated user is forbidden from updating the script; a 404 is returned when the script is not found; a 422 is returned when the request fails validation. The uuid path parameter must identify an existing cloud-init script, and any supplied name or script value must be a string.