Untitled Page
API Overview
Example
Customers  
Companies  
Technicians  
Technician Groups  
Tickets  
Ticket History  
Ticket Attachments  
Billing Line Items  
Billing Invoices  
Time Tracking  
Knowledge Base Articles  
Scheduling  
Asset Managements  
 
add_asset_field and update_asset_field
The variables and values are the same for both add_asset_field and update_asset_field (with the exception of "id", which is only used by update_asset_field). However, when using update_asset_field, only the variables and values you supply will be updated.
Input Variable Input Value Description
id Integer value. Required The ID of the asset field. This variable is only used for update_asset_field.
label String value, limited to 50 characters. Required The type of asset field to add. Accepted values are "text", "textarea" and "list" (without the quotes).
type String value, limited to 50 characters. Required The type of asset field. Accepted values are "text", "textarea" and "list" (without the quotes).
visible String value, limited to 255 characters. The visibility property of the field. Accepted values are "" (blank) and "visible" (without the quotes). "" (blank) is the default value.
customer_viewable String value Defines if the field is visible in the customer portal. Accepted values are "N" and "Y" (without the quotes).
required String value Defines whether or not the field is required. Accepted values are "N" and "Y" (without the quotes).
size Integer value. Defines the size of the field. You should only supply this value if the field type is "text".
max_size Integer value Defines the maximum size of the field. You should only supply this value if the field type is "text".
rows Integer value Defines the number of rows for the field. You should only supply this value if the field type is "textarea".
cols Integer value. Defines the number of columns for the field. You should only supply this value if the field type is "textarea".
default_state String value Defines the initial visibility state of the field. Accepted values are "" (blank) and "visible" (without the quotes). "" (blank) is the default value.
display_overview String value Defines if the field should be displayed in the overview. Accepted values are "N" and "Y" (witohut the quotes).
data_type String value, limited to 255 characters. Required Defines the field's data type. Accepted values are "Text", "Number", "Decimal", "Date/Time" and "Large Text" (without the quotes).

Output Variable URL Encoded Description
added_asset_field No Asset field ID that was added.
Example Usage
http://localhost/API/default.aspx?key=your key here&action=add_asset_field&label=Asset Field 1&type=test&size=20&max_size=255
Example Response
XML:
<?xml version="1.0"?>
<response>
    <added_asset_field>5</added_asset_field>
</response>
JSON:
{
	"response": [
		{
			"added_asset_field" : "5"
		}
	]
}
URL DELIMITED:
added_asset_field=5