Skip to content
post

Create boolean attribute

Endpoint

posthttps://<REGION>.cloud.appwrite.io...s/{collectionId}/attributes/boolean

Description

Required scopes

collections.write

Authentication

Initialize the Appwrite client with setProject() and a server API key (setKey()). For direct REST calls, send X-Appwrite-Project and X-Appwrite-Key.

Path

string
Required
string
Required

Body

string
Required
boolean
Required
boolean
boolean
Status
Content type
202
application/json

AttributeBoolean

Name
Type
Description
string
string
string
string
boolean
boolean
boolean
GraphQL
mutation {
databasesCreateBooleanAttribute(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]",
key: "",
required: false
) {
key
type
status
error
required
}
}