List Custom Fields
const url = 'https://api.upvio.com/v1/businesses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/custom-fields';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.upvio.com/v1/businesses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/custom-fields \ --header 'Authorization: Bearer <token>'List the custom fields defined within a Business. Use the alias of each field as the key in the patient customFields object.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Business ID
Responses
Section titled “Responses”List of Custom Fields
object
A custom field that can store additional data on a patient.
object
Unique identifier across the platform.
The ID of the Business this resource belongs to.
Time when the resource was created (ISO 8601 format).
Time when the resource was created (ISO 8601 format).
The key used to read and write this field in the patient customFields object.
The display name of the custom field.
A description of the custom field.
The type of value stored in the field. TEXT, DATE (YYYY-MM-DD) and SELECT values are strings, NUMBER values are numbers and BOOLEAN values are booleans.
The values accepted by a SELECT field.
Example
{ "data": [ { "fieldType": "BOOLEAN" } ]}The request is invalid.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 400, "type": "BadRequestError", "title": "Business ID does not match API key" }}The API key is missing or invalid, or the Business cannot be accessed with it.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 403, "type": "UnauthorizedError", "title": "Invalid API token" }}The Business does not exist.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 404, "type": "BusinessNotFoundError", "title": "Business not found" }}