https://appwrite.io/v1/database/collections/{collectionId}Update a collection by its unique ID.
Collection unique ID.
Collection name. Max length: 128 chars.
An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions.
Array of [rule objects](/docs/rules). Each rule define a collection field name, data type and validation.
An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request PUT \
--url 'https://appwrite.io/v1/database/collections/{collectionId}' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}https://appwrite.io/v1/database/collections/{collectionId}Update a collection by its unique ID.
Collection unique ID.
Collection name. Max length: 128 chars.
An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions.
Array of [rule objects](/docs/rules). Each rule define a collection field name, data type and validation.
An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request PUT \
--url 'https://appwrite.io/v1/database/collections/{collectionId}' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}