Create List


This request creates a new list.

Resource

POST /lists

Payload

A List or a subclass of a list. The object type must be specified.

Response

A Object Response < List > The created object.

Context

Authorization

User

Errors

HTTP code Xelion code Description

400

10202

The object type of the list is not specified.

Example

Request
POST https://xelion.nl/api/v1/master/lists
Payload
{
    "commonName": "List",
    "objectType": "X1List",
    "listItems": [
            {
                "item": {
                    "oid": "1556377",
                    "objectType": "Person"
                }
            }
        ]
}
Response
{
    "object": {
        "listItems": [
            {
                "item": {
                    "commonName": "Arnon Ron",
                    "oid": "1556377",
                    "objectType": "Person"
                },
                "comments": "",
                "oid": "1692217",
                "objectType": "X1ListItem"
            }
        ],
        "permissions": "ReadWriteRemove",
        "commonName": "List",
        "oid": "1692215",
        "objectType": "X1List"
    },
    "links": [
        {
            "rel": "self",
            "href": "http://xelion.nl/api/v1/master/lists/1692215",
            "method": "GET"
        }
    ]
}