Skip to content

Commit 9bcfe97

Browse files
Merge pull request #16 from appwrite/dev
feat: update for 1.0.0-RC1
2 parents 684d769 + efd7022 commit 9bcfe97

File tree

8 files changed

+30
-30
lines changed

8 files changed

+30
-30
lines changed

docs/account.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ PATCH https://HOSTNAME/v1/account/phone
8080

8181
| Field Name | Type | Description | Default |
8282
| --- | --- | --- | --- |
83-
| phone | string | Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212. | |
83+
| phone | string | Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212. | |
8484
| password | string | User password. Must be at least 8 chars. | |
8585

8686
## Get Account Preferences
@@ -167,7 +167,7 @@ GET https://HOSTNAME/v1/account/sessions/{sessionId}
167167

168168
| Field Name | Type | Description | Default |
169169
| --- | --- | --- | --- |
170-
| sessionId | string | **Required** Session ID. Use the string 'current' to get the current device session. | |
170+
| sessionId | string | **Required** Session ID. Use the string 'current' to get the current device session. | |
171171

172172
## Update Session (Refresh Tokens)
173173

@@ -181,7 +181,7 @@ PATCH https://HOSTNAME/v1/account/sessions/{sessionId}
181181

182182
| Field Name | Type | Description | Default |
183183
| --- | --- | --- | --- |
184-
| sessionId | string | **Required** Session ID. Use the string 'current' to update the current device session. | |
184+
| sessionId | string | **Required** Session ID. Use the string 'current' to update the current device session. | |
185185

186186
## Delete Account Session
187187

@@ -196,7 +196,7 @@ DELETE https://HOSTNAME/v1/account/sessions/{sessionId}
196196

197197
| Field Name | Type | Description | Default |
198198
| --- | --- | --- | --- |
199-
| sessionId | string | **Required** Session ID. Use the string 'current' to delete the current device session. | |
199+
| sessionId | string | **Required** Session ID. Use the string 'current' to delete the current device session. | |
200200

201201
## Update Account Status
202202

docs/avatars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,5 @@ GET https://HOSTNAME/v1/avatars/qr
131131
| text | string | **Required** Plain text to be converted to QR code image. | |
132132
| size | integer | QR code size. Pass an integer between 1 to 1000. Defaults to 400. | 400 |
133133
| margin | integer | Margin from edge. Pass an integer between 0 to 10. Defaults to 1. | 1 |
134-
| download | boolean | Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0. | |
134+
| download | boolean | Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0. | |
135135

docs/databases.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ POST https://HOSTNAME/v1/databases
2828

2929
| Field Name | Type | Description | Default |
3030
| --- | --- | --- | --- |
31-
| databaseId | string | Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
31+
| databaseId | string | Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
3232
| name | string | Collection name. Max length: 128 chars. | |
3333

3434
## Get Database
@@ -103,7 +103,7 @@ POST https://HOSTNAME/v1/databases/{databaseId}/collections
103103
| Field Name | Type | Description | Default |
104104
| --- | --- | --- | --- |
105105
| databaseId | string | **Required** Database ID. | |
106-
| collectionId | string | Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
106+
| collectionId | string | Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
107107
| name | string | Collection name. Max length: 128 chars. | |
108108
| permissions | array | An array of permissions strings. By default no user is granted with any permissions. [Learn more about permissions](/docs/permissions). | |
109109
| documentSecurity | boolean | Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](/docs/permissions). | |
@@ -408,7 +408,7 @@ POST https://HOSTNAME/v1/databases/{databaseId}/collections/{collectionId}/docum
408408
| --- | --- | --- | --- |
409409
| databaseId | string | **Required** Database ID. | |
410410
| collectionId | string | **Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents. | |
411-
| documentId | string | Document ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
411+
| documentId | string | Document ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
412412
| data | object | Document data as JSON object. | {} |
413413
| permissions | array | An array of permissions strings. By default the current user is granted with all permissions. [Learn more about permissions](/docs/permissions). | |
414414

docs/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ POST https://HOSTNAME/v1/functions
2727

2828
| Field Name | Type | Description | Default |
2929
| --- | --- | --- | --- |
30-
| functionId | string | Function ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
30+
| functionId | string | Function ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
3131
| name | string | Function name. Max length: 128 chars. | |
3232
| execute | array | An array of strings with execution roles. By default no user is granted with any execute permissions. [learn more about permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 64 characters long. | |
3333
| runtime | string | Execution runtime. | |

docs/storage.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ POST https://HOSTNAME/v1/storage/buckets
2727

2828
| Field Name | Type | Description | Default |
2929
| --- | --- | --- | --- |
30-
| bucketId | string | Unique Id. Choose your own unique ID or pass the string `unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
30+
| bucketId | string | Unique Id. Choose your own unique ID or pass the string `unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
3131
| name | string | Bucket name | |
3232
| permissions | array | An array of permission strings. By default no user is granted with any permissions. [Learn more about permissions](/docs/permissions). | |
3333
| fileSecurity | boolean | Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](/docs/permissions). | |
3434
| enabled | boolean | Is bucket enabled? | 1 |
3535
| maximumFileSize | integer | Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self-hosted setups you can change the max limit by changing the `_APP_STORAGE_LIMIT` environment variable. [Learn more about storage environment variables](docs/environment-variables#storage) | 30000000 |
3636
| allowedFileExtensions | array | Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long. | [] |
37-
| compression | string | Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled | none |
38-
| encryption | boolean | Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled | 1 |
39-
| antivirus | boolean | Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled | 1 |
37+
| compression | string | Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled | none |
38+
| encryption | boolean | Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled | 1 |
39+
| antivirus | boolean | Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled | 1 |
4040

4141
## Get Bucket
4242

@@ -71,9 +71,9 @@ PUT https://HOSTNAME/v1/storage/buckets/{bucketId}
7171
| enabled | boolean | Is bucket enabled? | 1 |
7272
| maximumFileSize | integer | Maximum file size allowed in bytes. Maximum allowed value is 30MB. For self hosted version you can change the limit by changing _APP_STORAGE_LIMIT environment variable. [Learn more about storage environment variables](docs/environment-variables#storage) | |
7373
| allowedFileExtensions | array | Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long. | [] |
74-
| compression | string | Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled | none |
75-
| encryption | boolean | Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled | 1 |
76-
| antivirus | boolean | Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled | 1 |
74+
| compression | string | Compression algorithm choosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled | none |
75+
| encryption | boolean | Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled | 1 |
76+
| antivirus | boolean | Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled | 1 |
7777

7878
## Delete Bucket
7979

@@ -125,7 +125,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
125125
| Field Name | Type | Description | Default |
126126
| --- | --- | --- | --- |
127127
| bucketId | string | **Required** Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket). | |
128-
| fileId | string | File ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
128+
| fileId | string | File ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
129129
| file | file | Binary file. | |
130130
| permissions | array | An array of permission strings. By default the current user is granted with all permissions. [Learn more about permissions](/docs/permissions). | |
131131

docs/teams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ POST https://HOSTNAME/v1/teams
2929

3030
| Field Name | Type | Description | Default |
3131
| --- | --- | --- | --- |
32-
| teamId | string | Team ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
32+
| teamId | string | Team ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. | |
3333
| name | string | Team name. Max length: 128 chars. | |
3434
| roles | array | Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long. | ["owner"] |
3535

@@ -143,7 +143,7 @@ PATCH https://HOSTNAME/v1/teams/{teamId}/memberships/{membershipId}
143143
| --- | --- | --- | --- |
144144
| teamId | string | **Required** Team ID. | |
145145
| membershipId | string | **Required** Membership ID. | |
146-
| roles | array | An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long. | |
146+
| roles | array | An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long. | |
147147

148148
## Delete Team Membership
149149

0 commit comments

Comments
 (0)