POST /api/external_systems

create an external system for the authenticated reach admin

Success Response Code: 201

Params

Param name Description
external_system
optional

Value: Must be a Hash
external_system[name]
required

name of the external_system


Value: Must be a String
external_system[description]
optional

description of external_system


Value: Must be a String
external_system[url]
required

the system url of the external_system


Value: Must be a String
external_system[not_in_company_stream]
optional

exclude this system's messages from Company Stream


Value: Must be one of: <code>true</code>, <code>false</code>.
external_system[external_system_type]
optional

system type (default=html)


Value: Must be one of: <code>html</code>, <code>sharepoint</code>, <code>google_gadget</code>.
external_system[sharepoint_version]
optional

available only if external_system_type is sharepoint


Value: Must be one of: <code>2007</code>, <code>2010</code>.

Response Fields

external_system see "GET /api/external_systems/:external_system_id" for documentation external_system

Example Curl Commands

#Add a external_system named "Socialcast Developers" and url http://w.com
curl -X POST -d "external_system[name]=Socialcast%20Developers&external_system[url]=http%3A%2F%2Fw.com" -v --basic -u "adminuser@socialcast.com:adminuser" http://demo.socialcast.com/api/external_systems.json
#Add a external_system named "Socialcast Developers" and url http://w.com and image from an url
curl -X POST -F "external_system[name]=Socialcast Developers" -F "external_system[url]=http://w.com" -F "external_system[profile_photo_url]=http://www.socialcast.com/sites/default/files/Logos/logo.png" -v --basic -u "adminuser@socialcast.com:adminuser" https://demo.socialcast.com/api/external_systems.json
#Add a external_system named "Socialcast Developers" and url http://w.com and a local image
curl -X POST -F "external_system[name]=Socialcast Developers" -F "external_system[url]=http://w.com" -F "external_system[profile_photo][data]=@./socialcast.png" -v --basic -u "adminuser@socialcast.com:adminuser" https://demo.socialcast.com/api/external_systems.json