/api/v1/object/toggle-public/{objectSlug}Turn an object's public form on or off.
Turn an object's public form on or off.
No request body. Flips is_public and returns the updated object. While
is_public is true and the object is active, anonymous visitors can
submit records through its public form. The message says which way it
flipped.
Scope: object.update.
Errors:
400— no object has that slug.
Response 200:
{
"status": 200,
"message": "Object is now public",
"data": {
"id": 37,
"name": "Contacts",
"slug": "contacts",
"icon": "tabler-users",
"description": "People we sell to",
"permission_name": "contacts",
"is_active": true,
"sort_order": 2,
"is_system": false,
"is_public": true,
"options": null,
"created_at": "2026-07-20T09:12:44.000Z",
"updated_at": "2026-09-14T10:00:00.000Z",
"folder_slug": null,
"default_view_slug": null,
"default_view_type": 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
{
"id": 1.5,
"name": "string",
"slug": "string",
"icon": "string",
"description": "string",
"permission_name": "string",
"is_active": true,
"sort_order": 1.5,
"is_system": true,
"is_public": true,
"options": "string",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z",
"folder_slug": "string",
"default_view_slug": "string",
"default_view_type": "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