File Field Type
Create a File Field Type
mutation {
fields(
boardId: "615a1c5975138d0001c4fc5b"
dto: {
name: "Document"
description: null
type: "file"
unique: false
isVisibleOnTable: true
typeData: {
required: true
file_types: [
"document"
]
}
}
) {
id
fieldsSecret {
name
description
type
typeData {
required
file_types
}
unique
dontUpdate
}
createdTime
nameHash
boardId
isVisibleOnTable
position
}
}
{
"data": {
"fields": {
"id": "6167b563d3c300000110556c",
"fieldsSecret": {
"name": "Document",
"description": null,
"type": "file",
"typeData": {
"required": true,
"file_types": [
"document"
]
},
"unique": false,
"dontUpdate": false
},
"createdTime": "Thu Oct 14 04:43:15 GMT 2021",
"nameHash": "0945359809DAD1FBF3DEA1C95A0DA951",
"boardId": "615a1c5975138d0001c4fc5b",
"isVisibleOnTable": true,
"position": 4
}
}
}
Update a File Field Type
mutation {
updateFields(
boardId: "615a1c5975138d0001c4fc5b"
fieldId: "6167b563d3c300000110556c"
dto: {
name: "Document"
description: "This is a document field type"
type: "file"
unique: true
isVisibleOnTable: true
typeData: {
required: true
file_types: [
"document"
]
}
}
) {
id
fieldsSecret {
name
description
type
typeData {
required
file_types
}
unique
dontUpdate
}
createdTime
nameHash
boardId
isVisibleOnTable
position
}
}
{
"data": {
"updateFields": {
"id": "6167b563d3c300000110556c",
"fieldsSecret": {
"name": "Document",
"description": "This is a document field type",
"type": "file",
"typeData": {
"required": true,
"file_types": [
"document"
]
},
"unique": true,
"dontUpdate": false
},
"createdTime": "Thu Oct 14 04:43:15 GMT 2021",
"nameHash": "0945359809DAD1FBF3DEA1C95A0DA951",
"boardId": "615a1c5975138d0001c4fc5b",
"isVisibleOnTable": true,
"position": 4
}
}
}
Delete a File Field Type
mutation {
deleteFields(
boardId: "615a1c5975138d0001c4fc5b"
fieldId: "6167b563d3c300000110556c"
)
}
{
"data": {
"deleteFields": "SUCCESS"
}
}
Updated about 3 years ago