Create share - PurposeOpen/Platform GitHub Wiki

POST /api/movements/:movement_id/shares(.:format)

Creates a new share for the requested action page, user and type of share

Parameters
movement_idMandatory Movement ID for which we want to create the share
page_idMandatory Action Page ID for which we want to create the share
user_idMandatory User ID for which we want to create the share
share_typeMandatory One of the following: 'facebook', 'twitter' or 'email'

Response

Status Code

201 if Successful 400 If share data is invalid

Content

N/A

Example Request

POST /api/movements/test-movement/shares.json Content-Type: application/x-www-form-urlencoded

page_id=1234&share_type=facebook&user_id=100

Example Response

200 (OK)

back