Update Volume Callback
PUT https://infrahub-api.nexgencloud.com/v1/core/volumes/{id}/update-callback
Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, click here.
Path parameters
id integer
Required
The ID of the volume to which the callback URL is being modified.
Request body parameters
url string
Required
The new callback URL to be attached to the volume.
Attributes
status boolean
Indicates the status of the request to update the volume callback. A status of true
indicates success.
message string
A message describing the status of the callback update.
url string
The URL of the new callback attached to the volume.
Example request
curl -X PUT "https://infrahub-api.nexgencloud.com/v1/core/volumes/{id}/attach-callback" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"\
-H "content-type: application/json" \
-d '{
"url": "string"
}'
Response
{
"status": true,
"message": "string",
"url": "string"
}
Returns
A successful response returns the status of true
, a message confirming the successful status, and the URL successfully attached to the volume. Any other response indicates an error has occurred.