List of Columns

Create record in an application:

URL : /api/v1/app/{app_id}/columns Method : GET

Parameters

access_token (required, header parameter) Send this as header – e.g.“Authorization: Bearer access_token”

app_id (required, path parameter) Application Id App for where the record is present

This API call will return a list of all columns of an app with all it's metadata.

Sample Request

curl -H "Authorization: Bearer {access_token}" -X GET https://my.worksmart.app/api/v1/app/1234/columns

Sample Response

[
	{
		"app_id": "40",
		"field_id": "72",
		"field_id_in_data": "f72",
		"field_name": "Store",
		"field_description": "",
		"type": "16",
		"type_name": "LookUp",
		"position": "1",
		"unique_value": "0"
	},
	{
		"app_id": "40",
		"field_id": "74",
		"field_id_in_data": "f74",
		"field_name": "Title",
		"field_description": "",
		"type": "2",
		"type_name": "Choice",
		"position": "2",
		"unique_value": "0",
		"default_value": "",
		"choice_type": "0",
		"choice_types": {
			"1": "single_select_radio_button",
			"0": "single_select_dropdown",
			"2": "multi_select_checkbox"
		},
		"display_format": "0",
		"display_formats": {
			"2": "Cards",
			"0": "One Per Line",
			"1": "Next to each other",
			"3": "Slider",
			"4": "Star Rating"
		},
		"choices": [
			{
				"id": "805",
				"name": "Mr",
				"color": "#FFE599",
				"order": "1"
			},
			{
				"id": "806",
				"name": "Mrs",
				"color": "#427e53",
				"order": "2"
			},
			{
				"id": "807",
				"name": "Miss",
				"color": "#3c68bb",
				"order": "3"
			},
			{
				"id": "808",
				"name": "Ms",
				"color": "#c73f27",
				"order": "4"
			}
		]
	},
	{
		"app_id": "40",
		"field_id": "37",
		"field_id_in_data": "f37",
		"field_name": "Employee Name",
		"field_description": "",
		"type": "0",
		"type_name": "Text Field",
		"position": "4",
		"unique_value": "0"
	}
]

Last updated