appwrite/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md

22 lines
559 B
Markdown
Raw Normal View History

2024-02-05 12:40:51 +00:00
<?php
use Appwrite\Client;
use Appwrite\Services\Databases;
2024-02-21 11:31:50 +00:00
$client = (new Client())
2025-04-22 13:02:33 +00:00
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key
2024-02-05 12:40:51 +00:00
$databases = new Databases($client);
2024-02-21 11:31:50 +00:00
$result = $databases->updateFloatAttribute(
2024-02-24 11:34:42 +00:00
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
2024-02-21 11:31:50 +00:00
key: '',
required: false,
2025-04-22 13:02:33 +00:00
default: null,
min: null, // optional
max: null, // optional
newKey: '' // optional
2024-02-21 11:31:50 +00:00
);