{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/apps/:app_id/talks/:id","auth":"required","examples":{"codes":[{"language":"shell","code":"curl -X PUT \"https://control.pulsatehq.com/api/v1/apps/$APP_ID/talks/$ID\"\n  -H \"Authorization: Token token=$MY_ADMIN_API_TOKEN\"\n  -d '{\n      \"talk\": {\n          \"starter\": \"admin\",\n          \"starter_id\": \"535a47bb20096982ef000001\",\n          \"admin_id\": \"535a47bb20096982ef000001\",\n          \"user_id\": \"582ad8d361707074a3191100\",\n          \"subject\": \"sample_subject\",\n          \"starred\": true\n      }\n  }'"}]},"method":"put","params":[{"name":"app_id","type":"string","default":"","desc":"App ID. It can be fetched by using \"Apps: Get All (Index)\" or \"Apps: Get One (Show)\" endpoints.","required":true,"in":"path","ref":"","_id":"57ff849b159c7e0e003c482b"},{"name":"id","type":"string","default":"","desc":"Talk ID. It can be fetched using \"Talks: Get All (Index)\" or \"Talks: Get One (Show)\" endpoints.","required":true,"in":"path","ref":"","_id":"58777d5fec7f142d002e0795"},{"name":"talk","type":"object","default":"","desc":"Talk to be updated","required":true,"in":"body","ref":"","_id":"58777d5fec7f142d002e0794"},{"name":"talk.starter_id","type":"string","default":"","desc":"Talk starter_id, Id of the user or admin","required":true,"in":"body","ref":"","_id":"57bb03737c05760e00345414"},{"name":"talk.admin_id","type":"string","default":"","desc":"Talk admin Id","required":true,"in":"body","ref":"","_id":"57bb03737c05760e00345413"},{"name":"talk.user_id","type":"string","default":"","desc":"Talk user Id","required":true,"in":"body","ref":"","_id":"57bb03737c05760e00345412"},{"name":"talk.subject","type":"string","default":"","desc":"Talk subject","required":true,"in":"body","ref":"","_id":"57bb03737c05760e00345411"},{"name":"talk.starter","type":"string","default":"","desc":"Talk starter, can be one of: [\"admin\", \"user\"]","required":true,"in":"body","ref":"","_id":"57bb03737c05760e00345415"},{"name":"talk.starred","type":"string","default":"","desc":"Talk starred","required":false,"in":"body","ref":"","_id":"58777d5fec7f142d002e0793"}],"results":{"codes":[{"code":"{\n  \"id\": \"5804f7cf636f6eb449030100\",\n  \"starter\": \"admin\",\n  \"starter_id\": \"535a47bb20096982ef000001\",\n  \"admin_id\": \"535a47bb20096982ef000001\",\n  \"user_id\": \"582ad8d361707074a3191100\",\n  \"read\": false,\n  \"subject\": \"sample_subject\",\n  \"starred\": true,\n  \"created_at\": \"2016-10-17T16:09:51.708Z\",\n  \"messages\": [\n    {\n      \"id\": \"5804f7cf636f6eb449010100\",\n      \"content\": \"sample_content1\",\n      \"sender\": \"admin\",\n      \"admin_id\": \"54d399cd6739de64100003f2\",\n      \"user_id\": \"56d579936170707c7fc60d00\",\n      \"created_at\": \"2016-10-17T16:09:51.376Z\"\n    }\n  ]\n}","language":"json","status":200,"name":""}]},"settings":"564bbbf80cbcc91700b8171c"},"next":{"description":"","pages":[]},"title":"Talks: Update One","type":"endpoint","slug":"talks-update-one","excerpt":"","body":"","updates":[],"order":62,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5e4fced159815700262d28e8","parentDoc":null,"version":{"version":"2.2","version_clean":"2.2.0","codename":"CMS API","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5e4fced159815700262d2899","55781fe35129590d003ff4f9","55781fe35129590d003ff4fa","5e4fced159815700262d289a","5e4fced159815700262d289b","5e4fced159815700262d289c","5e4fced159815700262d289d","5e4fced159815700262d289e","565b66c446118c0d00dcb0bb","56898269f8dc340d00308c13","5e4fced159815700262d289f","5e4fced159815700262d28a0","5c73dd27e8fdc000572a206a","5e4fced159815700262d28a1","5e53c04c1d11110018b56e12"],"_id":"5e4fced159815700262d2930","project":"54aa7f773b56130b0056c86e","forked_from":"55781fe25129590d003ff4f7","__v":1,"createdAt":"2015-06-10T11:30:42.700Z","releaseDate":"2015-06-10T11:30:42.700Z"},"category":{"sync":{"isSync":false,"url":""},"pages":["5e4fced159815700262d28c6","5e4fced159815700262d28c7","5e4fced159815700262d28c8","5e4fced159815700262d28c9","5e4fced159815700262d28ca","5e4fced159815700262d28cb","5e4fced159815700262d28cc","5e4fced159815700262d28cd","5e4fced159815700262d28ce","564c68a93eb8f81700838a25"],"title":"Pulsate CMS API","slug":"pulsate-cms-api","order":1,"from_sync":false,"reference":true,"_id":"5e4fced159815700262d289e","__v":10,"createdAt":"2015-11-17T23:47:10.058Z","project":"54aa7f773b56130b0056c86e","version":"5e4fced159815700262d2930"},"githubsync":"","project":"54aa7f773b56130b0056c86e","createdAt":"2016-08-22T13:51:47.370Z","__v":3,"user":"57a45e5726785a0e00b69a49"}

putTalks: Update One


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

app_id:
required
string
App ID. It can be fetched by using "Apps: Get All (Index)" or "Apps: Get One (Show)" endpoints.
id:
required
string
Talk ID. It can be fetched using "Talks: Get All (Index)" or "Talks: Get One (Show)" endpoints.

Body Params

talk:
required
object
Talk to be updated
talk.starter_id:
required
string
Talk starter_id, Id of the user or admin
talk.admin_id:
required
string
Talk admin Id
talk.user_id:
required
string
Talk user Id
talk.subject:
required
string
Talk subject
talk.starter:
required
string
Talk starter, can be one of: ["admin", "user"]
talk.starred:
string
Talk starred

Examples


Result Format


User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}