Create List Group

Call this endpoint as a POST request to create a list group with the details that you have provided in the body.

Endpoint
MethodURL
POSThttps://[Your URL]/api/2.0/list_groups

Request Body

{
“name”: “List group name”,
“description”: “List group description”
}

Properties
PropertyDescriptionData typeRequired
descriptionA description of the list group to be createdstringNo
nameThe name of the list group to be createdstringYes

Example Request

curl –location ‘[Your URL]/api/2.0/list_groups’ \
–header ‘Content-Type: application/json’ \
–header ‘Authorization: Basic ‘ \
–data ‘{
“name”: “List group Name”,
“description”: “List group description”
}’

Response
Status codeExplanation
201 CreatedThe request was successfully processed
401 UnauthorizedInvalid/Missing authorization credentials

Example Responses

List group successfully created [201 Created]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“item”: {
“id”: 15,
“name”: “List group Name”,
“description”: “List group description”
}
}

Invalid/Missing authorization credentials [401 Unauthorized]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/999”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“error”: {
“code”: “02001”,
“message”: “List Error Occured: Access Denied: Access Denied”,
“additional”: null
}
}

Delete List Group

Call this endpoint using a DELETE request to delete a list group with the ID you’ve provided.

Endpoint
MethodURLParameters
DELETE[Your URL]/api/2.0/list_groups/:id[id] – ID of the list group to be deleted

Request Body

{
“name”: “List group name”,
“description”: “List group description”
}

Example Request

curl –location –request DELETE ‘[Your URL]/api/2.0/list_groups/15’ \
–header ‘Authorization: Basic ‘

Response
Status codeExplanation
204 No ContentThe request was successfully processed
404 Not FoundThe list group with the provided ID was not found
401 Unauthorized Invalid/Missing authorization credentials

Example Responses

Invalid/Missing authorization credentials [401 Unauthorized]

{

    “links”: [

        {

            “title”: “Self”,

            “rel”: “self”,

            “href”: “[Your URL]/api/2.0/list_groups/999”

        },

        {

            “title”: “Home”,

            “rel”: “home”,

            “href”: “[Your URL]/api/2.0/”

        }

    ],

    “error”: {

        “code”: “02001”,

        “message”: “List Error Occured: Access Denied: Access Denied”,

        “additional”: null

    }

}

Not found [404 Not found]

{

    “links”: [

        {

            “title”: “Self”,

            “rel”: “self”,

            “href”: “[Your URL]/api/2.0/list_groups/999”

        },

        {

            “title”: “Home”,

            “rel”: “home”,

            “href”: “[Your URL]/api/2.0/”

        }

    ],

    “error”: {

        “code”: “02404”,

        “message”: “List Error Occured: Requested Resource Not Found”,

        “additional”: null

    }

}

Update List Group

Call this endpoint using a PUT request to update a list group.

Endpoint
MethodURLParameters
PUT[Your URL]/api/2.0/list_groups/:id[id] – ID of the list group to be updated.

Request Body

{
“name”: “List group name”,
“description”: “List group description”
}

Properties

PropertyDescriptionData typeRequired
nameThe updated name of the list groupstringYes
descriptionAn updated description of the list groupstringNo

Example Request

curl –location –request PUT [Your URL]/api/2.0/list_groups/14′ \
–header ‘Content-Type: application/json’ \
–header ‘Authorization: Basic ‘ \
–data ‘{
“name”: “Updated list group name”,
“description”: “Adding Description”
}’

Response
Status codeExplanation
204 No ContentThe request was successfully processed
404 Not FoundThe list group with the provided ID was not found
401 Unauthorized Invalid/Missing authorization credentials

Example Responses

Successfully updated list group [200 OK]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/14”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
},
{
“title”: “ListListGroups”,
“rel”: “collection”,
“href”: “[Your URL]/api/2.0/list_groups”
}
],
“item”: {
“id”: 14,
“name”: “Updated list group name”,
“description”: “Adding Description”
}
}

Invalid/Missing authorization credentials [401 Unauthorized]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/999”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“error”: {
“code”: “02001”,
“message”: “List Error Occured: Access Denied: Access Denied”,
“additional”: null
}
}

Not found [404 Not found]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/999”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“error”: {
“code”: “02404”,
“message”: “List Error Occured: Requested Resource Not Found”,
“additional”: null
}
}

Get Single List Group

Call this endpoint as a GET request to retrieve the list group with the ID that you have provided in the URL.

Endpoint
MethodURLParameters
GET[Your URL]/api/2.0/list_groups/:id[id] – ID of the requested list group

Example Request

curl –location ‘ [Your URL]/2.0/list_groups’ \
–header ‘Authorization: Basic

Response
Status codeExplanation
404 Not FoundThe list group with the provided ID was not found
401 UnauthorizedThe provided authorization credentials are incorrect
200 OkRequest was processed successfully

Example Responses

Successful request [200 OK]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/14”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
},
{
“title”: “ListListGroups”,
“rel”: “collection”,
“href”: “[Your URL]/api/2.0/list_groups”
}
],
“item”: {
“id”: 14,
“name”: “List group name”,
“description”: “Description”
}
}

Not found [404 Not Found]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/7”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“error”: {
“code”: “02404”,
“message”: “List Error Occured: Requested Resource Not Found”,
“additional”: null
}
}

Invalid/Missing authorization credentials [401 Unauthorized]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/999”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“error”: {
“code”: “02001”,
“message”: “List Error Occured: Access Denied: Access Denied”,
“additional”: null
}
}

Get List Groups

Call this endpoint as a GET request to get a list of list groups associated with your account.

Endpoint
MethodURL
GET[Your URL]/api/2.0/list_groups

Example Request
curl –location ‘[Your URL]/api/2.0/list_groups’ \
–header ‘Authorization: Basic ‘

Response
Status codeExplanation
401 UnauthorizedThe provided authorization credentials are incorrect
200 OkList groups retrieved successfully

Example Responses
Successful response with contents [200 OK]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“collection”: [
{
“data”: {
“id”: 1,
“name”: “List Group 1”,
“description”: “”
}
},
{
“data”: {
“id”: 2,
“name”: “Test for API”,
“description”: “API Test group”
}
},
] }

Successful response with no contents [200 OK]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“collection”: [] }

Invalid/Missing authorization credentials [401 Unauthorized]

{
“links”: [
{
“title”: “Self”,
“rel”: “self”,
“href”: “[Your URL]/api/2.0/list_groups/999”
},
{
“title”: “Home”,
“rel”: “home”,
“href”: “[Your URL]/api/2.0/”
}
],
“error”: {
“code”: “02001”,
“message”: “List Error Occured: Access Denied: Access Denied”,
“additional”: null
}
}