Latest News: MIDAS v4.25 Now Available | COVID-19 Support

MIDAS API Addon MIDAS API: add_resource

Available in API 2.0+
Adds a new resource to the system.
Required ParametersPossible ValuesDescription
resourceStringThe name of the new resource
Optional ParametersPossible ValuesDescription
typeequipment | consumable | staffingThe type of resource to be added. If this parameter is omitted, the resource type will default to "equipment"
qtyNumberThe available quantity of the new resource. If this parameter is ommited an "Unlimited" available quantity will be assumed
chargeDecimalThe charge (without currency symbol - i.e. 10.00) for the resource. This will be a per-hour charge where the type parameter is set to "staffing", otherwise this is a per-booking charge
public0 | 1Sets whether the resource is publicly requestable (can appear on the Public Booking Request screen). If this parameter is omitted, the resource won't be publicly requestable
venuesVenue IDsA comma-separated list of Venue ID's the resource will be available to. If this parameter is omitted, the resource will be available to all venues
Example Response
{
	"resource_added":"67"
}
Variables ReturnedDescription
resource_addedA unique resource ID corresponding the newly added resource