/api/v1/object/field/file-formatsList the file formats a file field can accept.
List the file formats a file field can accept.
Returns the formats grouped by kind. Use these extensions in a file
field's acceptedExtensions option. Leaving that option empty accepts
every format listed here. The list is not paginated.
Scope: object.read.
Response 200:
{
"status": 200,
"message": "File formats retrieved successfully",
"data": [
{
"key": "document",
"label": "Documents",
"formats": [".pdf", ".docx", ".xlsx"]
}
]
}
Send request
Use the documented inputs to call this endpoint directly.
Responses
Successful response
{
"key": "string",
"label": "string",
"formats": "string"
}Bad request
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Unauthorized
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Internal server error
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Powered by heyo-docs