Skip to content

Update Scheduled Snapshots / Schedule Snapshot

PUT
/api/v1/schedule-snapshot/
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/schedule-snapshot/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '"{\n \"resource_id\": {{node_id}},\n \"resource_type\": \"node\",\n \"time_line\": 1,\n \"create_after\": \"7\",\n \"delete_after\": \"3\"\n}"'

Update Scheduled Snapshots and Schedule Snapshot share this request; the body you send decides which one runs.

project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the request

Example

<API_KEY>
location
required
string

Specifies the E2E Myaccount region where the snapshot will be updated.

Example

<LOCATION>
Media typeapplication/json
One of:

JSON string containing the scheduled snapshot update parameters

string

Example

{
"resource_id": {{node_id}},
"resource_type": "node",
"time_line": 1,
"create_after": "7",
"delete_after": "3"
}

Successful response

Media typeapplication/json
object
code

HTTP status code of the update operation

integer
data
object
errors
object
message

Confirmation message indicating the update result.

string

Example

{
"code": 200,
"message": "Schedule settings has been updated successfully."
}