import requests
url = "https://{FUSION HOST}/api/collections/{collection}/schema/fields.schema"
response = requests.get(url)
print(response.text){
"type": "String",
"title": "<string>",
"description": "<string>",
"required": [
"<string>"
],
"properties": {},
"additionalProperties": {},
"minProperties": 123,
"maxProperties": 123,
"definitions": {},
"category": "<string>",
"categoryPriority": 123,
"enum": [
{}
],
"hints": [
"<string>"
],
"unsafe": true,
"default": {},
"oneOf": [
{
"type": "String",
"title": "<string>",
"description": "<string>",
"enum": [
{}
],
"default": {},
"category": "<string>",
"categoryPriority": 123,
"hints": [
"<string>"
],
"unsafe": true,
"oneOf": "<unknown>"
}
],
"propertyGroups": [
{
"label": "<string>",
"properties": [
"<string>"
]
}
]
}Returns fields schema for a given collection.
import requests
url = "https://{FUSION HOST}/api/collections/{collection}/schema/fields.schema"
response = requests.get(url)
print(response.text){
"type": "String",
"title": "<string>",
"description": "<string>",
"required": [
"<string>"
],
"properties": {},
"additionalProperties": {},
"minProperties": 123,
"maxProperties": 123,
"definitions": {},
"category": "<string>",
"categoryPriority": 123,
"enum": [
{}
],
"hints": [
"<string>"
],
"unsafe": true,
"default": {},
"oneOf": [
{
"type": "String",
"title": "<string>",
"description": "<string>",
"enum": [
{}
],
"default": {},
"category": "<string>",
"categoryPriority": 123,
"hints": [
"<string>"
],
"unsafe": true,
"oneOf": "<unknown>"
}
],
"propertyGroups": [
{
"label": "<string>",
"properties": [
"<string>"
]
}
]
}Collection ID.
successful operation
String, Number, Integer, Boolean, Object, Array, Null, Ref Show child attributes
Show child attributes
String, Number, Integer, Boolean, Object, Array, Null, Ref Show child attributes
String, Number, Integer, Boolean, Object, Array, Null, Ref Show child attributes
Show child attributes
String, Number, Integer, Boolean, Object, Array, Null, Ref Show child attributes
String, Number, Integer, Boolean, Object, Array, Null, Ref Show child attributes
Was this page helpful?