Collections

add collection

POST https://ushahididocs.api.ushahidi.io/api/v3/collections

Request Body

Name
Type
Description

user_id

String

The user identifier

view

String

Type of view e.g. "list"

description

String

Collection description

name

String

The name of collection

view_options

String

View Option

role

String

Role

featured

Boolean

Set True to feature collection and False for unfeatured

{
    "id": 11,
    "url": null,
    "user": {
        "id": 2,
        "url": "http://localhost:8000/api/v3/users/2"
    },
    "name": "Test collection",
    "description": "",
    "view": "list",
    "view_options": null,
    "role": null,
    "featured": false,
    "created": "2022-11-01T08:13:25+00:00",
    "updated": null,
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}

edit collection

PUT https://ushahididocs.api.ushahidi.io/api/v3/collections/3

Request Body

Name
Type
Description

user_id

String

The user identifier

view

String

Type of view e.g. "list"

description

String

Collection description

name

String

The name of collection

view_options

String

View Option

role

String

Role

featured

Boolean

Set True to feature collection and False for unfeatured

{
    "id": 11,
    "url": null,
    "user": {
        "id": 2,
        "url": "http://localhost:8000/api/v3/users/2"
    },
    "name": "Test collection",
    "description": "",
    "view": "list",
    "view_options": null,
    "role": null,
    "featured": false,
    "created": "2022-11-01T08:13:25+00:00",
    "updated": null,
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}