2019-08-06 17:03:18 +12:00
|
|
|
# Projects Service
|
|
|
|
|
|
|
|
## List Projects
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
## Create Project
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
POST https://https://appwrite.io/v1/projects
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| name | string | Project name | |
|
|
|
|
| teamId | string | Team unique ID. | |
|
|
|
|
| description | string | Project description | |
|
|
|
|
| logo | string | Project logo | |
|
|
|
|
| url | string | Project URL | |
|
|
|
|
| legalName | string | Project Legal Name | |
|
|
|
|
| legalCountry | string | Project Legal Country | |
|
|
|
|
| legalState | string | Project Legal State | |
|
|
|
|
| legalCity | string | Project Legal City | |
|
|
|
|
| legalAddress | string | Project Legal Address | |
|
|
|
|
| legalTaxId | string | Project Legal Tax ID | |
|
|
|
|
|
|
|
|
## Get Project
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
|
|
|
|
## Update Project
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
PATCH https://https://appwrite.io/v1/projects/{projectId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| name | string | Project name | |
|
|
|
|
| description | string | Project description | |
|
|
|
|
| logo | string | Project logo | |
|
|
|
|
| url | string | Project URL | |
|
|
|
|
| legalName | string | Project Legal Name | |
|
|
|
|
| legalCountry | string | Project Legal Country | |
|
|
|
|
| legalState | string | Project Legal State | |
|
|
|
|
| legalCity | string | Project Legal City | |
|
|
|
|
| legalAddress | string | Project Legal Address | |
|
|
|
|
| legalTaxId | string | Project Legal Tax ID | |
|
|
|
|
|
|
|
|
## Delete Project
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
DELETE https://https://appwrite.io/v1/projects/{projectId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
|
|
|
|
## List Keys
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/keys
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
|
|
|
|
## Create Key
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
POST https://https://appwrite.io/v1/projects/{projectId}/keys
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| name | string | Key name | |
|
|
|
|
| scopes | array | Key scopes list | |
|
|
|
|
|
|
|
|
## Get Key
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| keyId | string | **Required** Key unique ID. | |
|
|
|
|
|
|
|
|
## Update Key
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
PUT https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| keyId | string | **Required** Key unique ID. | |
|
|
|
|
| name | string | Key name | |
|
|
|
|
| scopes | array | Key scopes list | |
|
|
|
|
|
|
|
|
## Delete Key
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
DELETE https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| keyId | string | **Required** Key unique ID. | |
|
|
|
|
|
|
|
|
## Update Project OAuth
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
PATCH https://https://appwrite.io/v1/projects/{projectId}/oauth
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| provider | string | Provider Name | |
|
|
|
|
| appId | string | Provider App ID | |
|
|
|
|
| secret | string | Provider Secret Key | |
|
|
|
|
|
|
|
|
## List Platforms
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/platforms
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
|
|
|
|
## Create Platform
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
POST https://https://appwrite.io/v1/projects/{projectId}/platforms
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| type | string | Platform name | |
|
|
|
|
| name | string | Platform name | |
|
|
|
|
| key | string | Package name for android or bundle ID for iOS | |
|
|
|
|
| store | string | App store or Google Play store ID | |
|
2019-08-10 23:38:09 +12:00
|
|
|
| url | string | Platform client URL | |
|
2019-08-06 17:03:18 +12:00
|
|
|
|
|
|
|
## Get Platform
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| platformId | string | **Required** Platform unique ID. | |
|
|
|
|
|
|
|
|
## Update Platform
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
PUT https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| platformId | string | **Required** Platform unique ID. | |
|
|
|
|
| name | string | Platform name | |
|
|
|
|
| key | string | Package name for android or bundle ID for iOS | |
|
|
|
|
| store | string | App store or Google Play store ID | |
|
2019-08-23 09:10:32 +12:00
|
|
|
| url | string | Platform client URL | |
|
2019-08-06 17:03:18 +12:00
|
|
|
|
|
|
|
## Delete Platform
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
DELETE https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| platformId | string | **Required** Platform unique ID. | |
|
|
|
|
|
|
|
|
## List Tasks
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/tasks
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
|
|
|
|
## Create Task
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
POST https://https://appwrite.io/v1/projects/{projectId}/tasks
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| name | string | Task name | |
|
|
|
|
| status | string | Task status | |
|
|
|
|
| schedule | string | Task schedule syntax | |
|
|
|
|
| security | integer | Certificate verification, 0 for disabled or 1 for enabled | |
|
|
|
|
| httpMethod | string | Task HTTP method | |
|
|
|
|
| httpUrl | string | Task HTTP URL | |
|
|
|
|
| httpHeaders | array | Task HTTP headers list | |
|
|
|
|
| httpUser | string | Task HTTP user | |
|
|
|
|
| httpPass | string | Task HTTP password | |
|
|
|
|
|
|
|
|
## Get Task
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| taskId | string | **Required** Task unique ID. | |
|
|
|
|
|
|
|
|
## Update Task
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
PUT https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| taskId | string | **Required** Task unique ID. | |
|
|
|
|
| name | string | Task name | |
|
|
|
|
| status | string | Task status | |
|
|
|
|
| schedule | string | Task schedule syntax | |
|
|
|
|
| security | integer | Certificate verification, 0 for disabled or 1 for enabled | |
|
|
|
|
| httpMethod | string | Task HTTP method | |
|
|
|
|
| httpUrl | string | Task HTTP URL | |
|
|
|
|
| httpHeaders | array | Task HTTP headers list | |
|
|
|
|
| httpUser | string | Task HTTP user | |
|
|
|
|
| httpPass | string | Task HTTP password | |
|
|
|
|
|
|
|
|
## Delete Task
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
DELETE https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| taskId | string | **Required** Task unique ID. | |
|
|
|
|
|
|
|
|
## Get Project
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/usage
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
|
|
|
|
## List Webhooks
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/webhooks
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
|
|
|
|
## Create Webhook
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
POST https://https://appwrite.io/v1/projects/{projectId}/webhooks
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| name | string | Webhook name | |
|
|
|
|
| events | array | Webhook events list | |
|
|
|
|
| url | string | Webhook URL | |
|
|
|
|
| security | integer | Certificate verification, 0 for disabled or 1 for enabled | |
|
|
|
|
| httpUser | string | Webhook HTTP user | |
|
|
|
|
| httpPass | string | Webhook HTTP password | |
|
|
|
|
|
|
|
|
## Get Webhook
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
GET https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| webhookId | string | **Required** Webhook unique ID. | |
|
|
|
|
|
|
|
|
## Update Webhook
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
PUT https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| webhookId | string | **Required** Webhook unique ID. | |
|
|
|
|
| name | string | Webhook name | |
|
|
|
|
| events | array | Webhook events list | |
|
|
|
|
| url | string | Webhook URL | |
|
|
|
|
| security | integer | Certificate verification, 0 for disabled or 1 for enabled | |
|
|
|
|
| httpUser | string | Webhook HTTP user | |
|
|
|
|
| httpPass | string | Webhook HTTP password | |
|
|
|
|
|
|
|
|
## Delete Webhook
|
|
|
|
|
|
|
|
```http request
|
2019-10-04 18:14:22 +13:00
|
|
|
DELETE https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
|
2019-08-06 17:03:18 +12:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
| Field Name | Type | Description | Default |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| projectId | string | **Required** Project unique ID. | |
|
|
|
|
| webhookId | string | **Required** Webhook unique ID. | |
|
|
|
|
|