Refresh project
Refreshes the project by reconciling models in the project with datasets in Census. To find the status of the refresh job, issue a request to the refresh_status endpoint with the returned refresh_key. Currently, only Looker projects are supported. Please reach out to support@getcensus.com if you'd like to manage Dbt or Sigma projects via API.
Request schema
Path parameters
project_id
integerrequired
The id of the project to refresh. List the IDs of the projects for your source using the list projects endpoint.
Header parameters
Authorization
stringrequired
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Http + 1.1
POST
https://app.getcensus.com/api/v1/projects/{project_id}/refresh
POST /api/v1/projects/{project_id}/refresh HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Host: app.getcensus.com
Responses
202
Successfully issued a refresh request for the project. The refresh is in progress.
404
Resource not found.
202
refresh_key
integer
The key that can be used to check the status of the refresh job.
example:
404
status
integer
HTTP status code.
enum:
{ "refresh_key": 1647978948 }