Site:API:Content
From Metrixstream
Revision as of 20:45, 20 August 2012 by MetrixAdmin (Talk | contribs)
Contents |
Content
Add Content
This API call is responsible for creating a content item.
Authentication Restrictions
Any authenticated user.
Required Parameters
- action=addcontent
- type
- blob,news,album,inventory,object,product,photoset,project,pledge,playlist,event
- title
- the content item title; no more than 1000 characters.
Optional Parameters
- description
- the content item description; no more than 65k characters.
- release_date
- credits_per_minute
- credits_to_own
- price
- only available for types that are not a product or project.
- inventory
- only available for types that are event.
- label
- will be prefixed by the site's user prefix label.
- addcategory
- an array of category ids
- addtag
- an array of tags
Successful Response
- status=ok
- item
- contentId
- the id of the newly created content item;
- canonicalId
- the canonical id of the newly created content item.
Edit Comment
This API call is responsible for editing a comment.
Authentication Restrictions
Moderators and Comment authors.
Required Parameters
- action=comment
- verb=editcomment
- commentId
- The id of the comment.
Optional Parameters
- msg
- the comment message; Comment authors have a 15 minute window to edit their comment; Moderators can always edit.
- approved=yes|no
- the comment approval state; Only Moderators have access to this field.
Successful Response
- status=ok
Delete Comment
This API call is responsible for deleting a comment.
Authentication Restrictions
Moderators; Comment owners;
Required Parameters
- action=comment
- verb=delcomment
- commentId
- The id of the comment.
Successful Response
- status=ok