All URIs are relative to https://looker.buffer.com:19999/api/3.0
Method | HTTP request | Description |
---|---|---|
reset_project_to_production | POST /projects/{project_id}/reset_to_production | Reset a project to the version that is in production. |
bool reset_project_to_production(project_id)
Reset a project to the version that is in production.
Reset a project with a specified ID to the version of the project that is in production. DANGER this will delete any changes that have not been pushed to a remote repository.
import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = lookerpy.ProjectApi()
project_id = 'project_id_example' # str | Id of project
try:
# Reset a project to the version that is in production.
api_response = api_instance.reset_project_to_production(project_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling ProjectApi->reset_project_to_production: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | Id of project |
bool
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]