Rico
Rico

Reputation: 57

Podio API Creating comments with additional attributes

I am working on migrating data from multiple app items into one. I was able to move all the data over but I need to move comments and files as well.

I know the API allows you to create comments from an App (which I am doing) but I want to be able to create the comment and pass the original information (message,creator,created_on).

The API documentation doesn't show what are all the "possible" attributes for creating a comment.

Thanks.

Upvotes: 0

Views: 133

Answers (1)

Pavlo - Podio
Pavlo - Podio

Reputation: 2013

All details on how to create new comment are here: https://developers.podio.com/doc/comments/add-comment-to-object-22340

{
  "value": The comment to be made,
  "external_id": The external id of the comment, if any,
  "file_ids": Temporary files that have been uploaded and should be attached to this comment,
  [
    {file_id},
    .... (more file ids)
  ],
  "embed_id": [OPTIONAL] The id of an embedded link that has been created with the Add an mebed operation in the Embed area,
  "embed_url": The url to be attached
}

Please note, you can't set some of comment's attributes (like: creator, created_on).

Upvotes: 0

Related Questions