Posts
Add new post
POST
https://ushahididocs.api.ushahidi.io /api/v3/posts
Request Body
form_id
String
Form unique identifier
slug
String
Post slug
type
String
Post type
message
String
Additiong message for post
url
String
Post URL
author_email
String
Email address of source
title
String
Title of the new post
content
String
Post content
user_id
Integer
The user's unique Identifier
author_realname
String
The full name of the Post source
status
String
The status of post
locale
String
Post local language
color
String
Post color
id
String
Unique identifier for new post
parent_id
Integer
Parent ID for new post
values
Object
This is an array containing two items, one for the title and the description
completed_stages
Array
Contains an array of post-completed stage
published_to
Array
This contains an array of where the post was published
source
String
Source of post
sets
Array
An array of set id's
tags
Array
Contains an object of tag Id's
contact
String
Post contact
Edit a post by ID
PUT
https://ushahididocs.api.ushahidi.io/api/v3/posts/{id}
Path Parameters
id*
integer
The post identifier
Request Body
form_id
Integer
Form unique identifier
slug
String
Post slug
type
String
Post type
message
String
Additiong message for post
url
String
Post URL
author_email
String
Email address of source
title
String
Title of the new post
content
String
Post content
user_id
Integer
The user's unique Identifier
author_realname
String
The full name of the Post source
status
String
The status of post
locale
String
Post local language
color
String
Post color
id
String
Unique identifier of post
values
String
This is an array containing two items, one for the title and the description
published_to
Array
This contains an array of where the post was published
source
String
Source of post
sets
String
An array of set id's
tags
String
Contains an array of tag Id's
contact
String
Post contact
Sub Posts & Translation
Add a post translation
POST
https://ushahididocs.api.ushahidi.io/api/v3/posts/{parent_id}/translations
Path Parameters
parent_id**
String
Parent Identifier
Request Body
content
String
Post content
type
String
Post type
author_email
String
Email address of source
message
String
Additional message for post
url
String
Post URL
id
String
Post unique identifier
slug
String
Post slug
user_id
String
Post user indentifier
color
String
Post color
title
String
Post Tiitle
locale
String
The local language of post
status
String
Post status
author_realname
String
The full name of the Post source
published_to
Array
This contains an array of where the post was published
completed_stages
Array
Contains an array of post-completed stage
source
String
The Source of the post contains an array of post-completed stage
Edit post translation
PUT
https://ushahididocs.api.ushahidi.io/api/v3/posts/{parent_id}/translations/{translation_id}
Path Parameters
parent_id*
Integer
Parent Identifier
translation_id*
integer
Translation Identifier
Request Body
id
String
Post unique identifier
published_to
Array
Contains an array of post-completed stage
locale
String
The local language of the post
status
String
Post status
author_realname
String
The full name of the Post source
author_email
String
The full name of the Post source
type
String
Post type
color
String
Post color
message
String
Post message
content
String
Content of post
title
String
Post title
user_id
String
Post user identifier
url
String
Post URL
source
String
The Source of the post contains an array of post-completed stage
Edit post local translation
PUT
https://ushahididocs.api.ushahidi.io/api/v3/posts/{parent_id}/translations/(local)
Path Parameters
parent_id*
Integer
Parent Identifier
local*
String
Post locale
Request Body
id
String
Post unique identifier
published_to
Array
Contains an array of post-completed stage
locale
String
The local language of the post
status
String
Post status
author_realname
String
The full name of the Post source
author_email
String
The full name of the Post source
type
String
Post type
color
String
Post color
message
String
Post message
content
String
Content of post
title
String
Post title
user_id
Integer
Post user identifier
url
String
Post URL
source
String
The Source of the post contains an array of post-completed stage
form_id
Integer
Post form identifier