API Playground - set_package_contents

set_package_contents


Use this function to make a resource into a pakcage and set package type and contents, or to make a package into a regular resource (by setting package_type=none) (click for full documentation)

resource_id

ID of the resource

package_type

One of the following values: none (resource is not a package), flexible (flexible package) or simple (simple package)

priority

Used only with flexible packages. This is the priority of auto-assignment within category. Possible values are: 0=chosen randomly (daily), 2=chosen randomly (each time), 3=sorted alphabetically

quantity_used_XXX

Number of units of the included resource with ID XXX used by reservation of each unit of the package

quantity_blocked_XXX

Number of units of resource with ID XXX blocked by reservation of each unit of the package

category_XXX

Used only with flexible packages. This is the category for resource with ID XXX (valid values: 1-5)

customer_chosen_categories

Used only with flexible packages. These are comma-separated categories for which the customer can manually choose the resource used.

language

by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned

api_key

* - påkrevd felt