import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| pagesProjectCreateProject | POST /accounts/{account_id}/pages/projects | Create project |
| pagesProjectDeleteProject | DELETE /accounts/{account_id}/pages/projects/{project_name} | Delete project |
| pagesProjectGetProject | GET /accounts/{account_id}/pages/projects/{project_name} | Get project |
| pagesProjectGetProjects | GET /accounts/{account_id}/pages/projects | Get projects |
| pagesProjectUpdateProject | PATCH /accounts/{account_id}/pages/projects/{project_name} | Update project |
PagesProjectResponse pagesProjectCreateProject(accountId, pagesProjectObject)
Create project
Create a new project.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPagesProjectApi();
final String accountId = accountId_example; // String |
final PagesProjectObject pagesProjectObject = ; // PagesProjectObject |
try {
final response = api.pagesProjectCreateProject(accountId, pagesProjectObject);
print(response);
} catch on DioException (e) {
print('Exception when calling PagesProjectApi->pagesProjectCreateProject: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| pagesProjectObject | PagesProjectObject |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PagesProjectDeleteProject200Response pagesProjectDeleteProject(projectName, accountId)
Delete project
Delete a project by name.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPagesProjectApi();
final String projectName = projectName_example; // String |
final String accountId = accountId_example; // String |
try {
final response = api.pagesProjectDeleteProject(projectName, accountId);
print(response);
} catch on DioException (e) {
print('Exception when calling PagesProjectApi->pagesProjectDeleteProject: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| projectName | String | ||
| accountId | String |
PagesProjectDeleteProject200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PagesProjectResponse pagesProjectGetProject(projectName, accountId)
Get project
Fetch a project by name.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPagesProjectApi();
final String projectName = projectName_example; // String |
final String accountId = accountId_example; // String |
try {
final response = api.pagesProjectGetProject(projectName, accountId);
print(response);
} catch on DioException (e) {
print('Exception when calling PagesProjectApi->pagesProjectGetProject: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| projectName | String | ||
| accountId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PagesProjectsResponse pagesProjectGetProjects(accountId, page, perPage)
Get projects
Fetch a list of all user projects.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPagesProjectApi();
final String accountId = accountId_example; // String |
final int page = 1; // int |
final int perPage = 10; // int |
try {
final response = api.pagesProjectGetProjects(accountId, page, perPage);
print(response);
} catch on DioException (e) {
print('Exception when calling PagesProjectApi->pagesProjectGetProjects: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| page | int | [optional] | |
| perPage | int | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PagesProjectResponse pagesProjectUpdateProject(projectName, accountId, pagesProjectPatch)
Update project
Set new attributes for an existing project. Modify environment variables. To delete an environment variable, set the key to null.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPagesProjectApi();
final String projectName = projectName_example; // String |
final String accountId = accountId_example; // String |
final PagesProjectPatch pagesProjectPatch = ; // PagesProjectPatch |
try {
final response = api.pagesProjectUpdateProject(projectName, accountId, pagesProjectPatch);
print(response);
} catch on DioException (e) {
print('Exception when calling PagesProjectApi->pagesProjectUpdateProject: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| projectName | String | ||
| accountId | String | ||
| pagesProjectPatch | PagesProjectPatch |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]