/api/v1/object/field/{objectSlug}/{fieldSlug}Delete a field and its values.
Delete a field and its values.
Removes the field from the object, deletes the value it held on every
record, and deletes the files stored in it. This cannot be undone. System
fields cannot be deleted. When a board view groups by the field, the call
answers 409 unless you add force=true; with force, those boards are
deleted with the field.
Query parameters:
force—trueto delete the field even when a board groups by it. Any other value counts asfalse.
Scope: object.delete.
Errors:
400— it is a system field, no field has that slug, or no active object has that slug.409— a board groups by this field andforceis nottrue(code: FIELD_IN_USE_BY_VIEWS).
Response 200:
{
"status": 200,
"message": "Field deleted successfully",
"data": null
}
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Responses
Successful response
{
"message": "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