Layer
add layer
POST
https://ushahididocs.api.ushahidi.io/api/v3/layers
Request Body
edit layer
PUT
https://ushahididocs.api.ushahidi.io/api/v3/layers/1
POST
https://ushahididocs.api.ushahidi.io/api/v3/layers
PUT
https://ushahididocs.api.ushahidi.io/api/v3/layers/1
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
name
String
Layer name
visible_by_default
Boolean
Set True to make the layer visible by default and False to not
active
Boolean
Set True for active layer and False for Inactive layer
options
Array
Contains an array of layer options
type
String
Layer type
media
String
media
data_url
String
Data source URL
name
String
Layer name
visible_by_default
Boolean
Set True to make the layer visible by default and False to not
active
Boolean
Set True for active layer and False for Inactive layer
options
Array
Contains an array of layer options
type
String
Layer type
media
String
media
data_url
String
Data source URL
OK
OK
OK