createCategoryConfigurations

Request Method: POST

Description: Create categories configurations.

URL: https://api.iovox.com:444/Categories?v=3&method=createCategoryConfigurations

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use INTEGERYES

Payload:

The following XML payload must be sent with an createCategoryConfigurations request:

<?xml version="1.0" encoding="utf-8"?>
<request>
    <category>
        <label>Location</label>
        <category_id>Location</category_id>
        <type>Tree</type>
    </category>
</request>
<?xml version="1.0" encoding="utf-8"?>
<request>
    <category>
        <label>Quarantine Date</label>
        <category_id>Quarantine Date</category_id>
        <type>Quarantine_Date</type>
    </category>
</request>

Payload Description

Node NameDescriptionDefault ValueData TypeMandatory
categoryTag which involve all the category configuration details  YES
category>category_idID of the category configuration STRINGYES
category>labelThe label for the category configuration STRINGYES
category>typeThe type of category configuration it will be. Currently there are the following types: Tree with multiple level string categories, Quarantine_Date with a date with a valid format YYYY-MM-DD and Deletion_Date with a date with a valid format. These two last types will be explained in the pageTreeSTRINGNO
category>colourThe colour in valid hexadecimal format STRINGNO

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be POST. x attemptedSwitch request method x to POST
400XML EmptyAdd xml to the request body
400XML parse error. x at line y, column zCorrect XML at point x on line y, column z
400Request EmptyAdd at least one node to the request
400Category ID x of y EmptyAdd Category ID for Category x (item) of y (total)
400Category ID x of y existsCorrect the Category ID for Category x (item) of y (total)
400Label x of y EmptyAdd label for Category x (item) of y (total)
400Label x of y existsCorrect label for Category  x (item) of y (total)
400Type x of y invalidCorrect the type for Category  x (item) of y (total)
400Type x of y invalidCorrect the type for Category  x (item) of y (total)
400Colour x of y invalidCorrect the colour for Category x (item) of y (total)
500Internal Server ErrorRetry later

Success Result

Includes Node/Link IDs generated by any AUTOINCREMENT() and any VoxNumbers attached to the Links

HTTP/1.1 201 Created