Skip to content

Create Inventory Source

Registers a new inventory source and returns the full created source.

How this menu works

For field meanings and the delete guards, see the Inventory Sources overview.

Operation

OperationTypePurpose
createAdminSettingsInventorySource(input:)MutationCreate an inventory source

code, name, the contact fields (contactName, contactEmail, contactNumber) and the address fields (country, state, city, street, postcode) are required. description, contactFax, priority, latitude, longitude and status are optional. code must be unique; a duplicate is rejected (equivalent to HTTP 422 on REST).

Permission: settings.inventory_sources.create. All operations require an admin Bearer token — see Authentication.

Released under the MIT License.