Available in API 2.0+
add_resource
Adds a new resource to the system.
Required Parameters | Possible Values | Description |
resource | String | The name of the new resource |
Optional Parameters | Possible Values | Description |
type | equipment | consumable | staffing | The type of resource to be added. If this parameter is omitted, the resource type will default to "equipment " |
qty | Number | The available quantity of the new resource. If this parameter is ommited an "Unlimited" available quantity will be assumed |
charge | Decimal | The 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 |
public | 0 | 1 | Sets 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 |
venues | Venue IDs | A 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 Returned | Description |
resource_added | A unique resource ID corresponding the newly added resource |