Collections

get_collections

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
orderbystringOptional

Sorting parameter Available values : entity fields Default value : featured

Example: name
orderstringOptional

Sorting parameter Available values : [ASC,DESC] !! Default value : Desc

Example: Desc
limitinteger · int32Optional

Paging parameter Default value : null

Example: 2
offsetinteger · int32Optional

Paging parameter Default value : 0

Example: 3
qstringOptional

Filter parameter return collections which his name contian the q value

Example: test
user_idinteger · int32Optional

Filter parameter return collection with the user id value

Example: 9
Responses
200

OK

application/json
get
/api/v3/collections
200

OK

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

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

get collection

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
get
/api/v3/collections/1

delete collection

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
delete
/api/v3/collections/3