FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Skip to end of metadata
Go to start of metadata

 

 

POST sets

Create a sets

METHOD: POST
ENDPOINT: /api/v2/sets/
AUTHENTICATED: No

The request body is a JSON representation of the sets being created.

Example request

POST https://ushv3.dev/api/v2/sets

Post Data
Response

GET sets

Listing all sets

METHOD: GET
ENDPOINT: /api/v2/sets/
AUTHENTICATED: No

Query Parameters

Name

Type

Description

q

Optional

Only sets containing this search string will be returned, matched against 'name' property

name

Optional

Only sets with a matching 'name' will be returned

user_idOptionalOnly sets with this user_id will be returned

order

Optional

Returned sets will be sorted in this order: ASC or DESC. Default: DESC

order_by

Optional

Returned sets will be sorted by this field. Default: created

limit

Optional

Limit number of results returned. Default: 50. Max: 500

offset

Optional

Sets returned will be offset by this number of results

Example Request

GET https://ushv3.dev/api/v2/sets

Response

Search Example

GET https://ushv3.dev/api/v2/sets?q=Explo

Response

GET sets/:id

Get a single set

METHOD: GET
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: Yes

Query Parameters

Name

Type

Description

id

Required

The numerical id of the set being updated.

Example Request

GET http://ushv3.dev/api/v2/sets/1

Response

PUT sets/:id

Update a set

METHOD: PUT
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: Yes

Query Parameters

Name

Type

Description

id

Required

The numerical id of the set being updated.

Example Request

PUT http://ushv3.dev/api/v2/sets/1

Post Data
Response

DELETE sets/:id

Deleting a set

METHOD: DELETE
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: YES

Query Parameters

Name

Type

Description

id

Required

The numerical id of the set being deleted.

Example request

DELETE /api/v2/sets/2

Response
  • No labels