curl -X POST https://xmlagri.qcone.com/api/v1/organisations.xml \ --user :api_key \ --data '<?xml version="1.0" encoding="UTF-8"?> <organisation> <customerId>ABC123</customerId> <name>Name of the company</name> <countryCode>GB</countryCode> <isActive>false</isActive> </organisation>'
<?xml version="1.0" encoding="UTF-8"?> <organisation> <id>19167</id> <customerId>ABC123</customerId> <name>Name of the company</name> <countryCode>GB</countryCode> <isActive>false</isActive> </organisation>
Param name | Description |
---|---|
code optional |
Customer Code Validations:
|
name required |
Name of the organisation Validations:
|
countryCode optional |
Code of the organisation's country - ISO 3166/alpha2 Validations:
|
isActive optional |
True when organisation has to have access to QCOne. False when no access is needed Validations:
|
email optional |
Email of the admin account of the organisation. Required when isActive is True Validations:
|
notificationEmailCode optional |
Single notification mail code Validations:
|