Action

Action Service

Web service endpoints for interacting with action and notification in the ToDo queue. Actions are created by creating activities with recipients specified. See Sending Actions for how to create an action.

See Action for an example of the JSON representation.

Examples:
Get Actions

Example with curl of getting actions for the current user. Corresponds with the Actions tab in a user's Home screen.

curl -u someuser:password http://example.jiveon.com/api/core/v3/actions?count=5

Create Action

Example with curl of creating an Action, i.e. an activity directed towards specific users.

curl -u jane.smith:password -H "Content-Type: application/json" --data '{ "title": "Sending you an action!", "content": "Click OK to acknowledge", "openSocial": { "deliverTo": ["jive.mycompany.com/api/core/v3/people/1234"] } }' example.jiveon.com/api/core/v3/activities

Get Action

GET /actions/{actionID}

Return the specified inbox action for the requesting person.

Path Parameters:
NameTypeRequiredDescription
actionIDStringtrueID of the action to be returned
Query Parameters:
NameTypeRequiredDescription
fieldsStringfalseNames of the fields to be returned
Retrieves:
  • Activity representing the specified action
  • Return Status:
    HTTP Status CodeDescription
    200 (OK)Request was successful
    400 (Bad Request)An input parameter is missing or invalid
    403 (Forbidden)You are not allowed to access the requested action
    404 (Not Found)The specified action is missing or not an action

    Get Actions

    GET /actions

    Return a paginated (by most recent event time) list of actions for the authenticated requesting person.

    This service supports the following filters. Parameters, when used, should be wrapped in parentheses, and multiple values separated by commas. See examples for clarification.

    Filter Params Example
    entryState One of the valid state values (default is awaiting_action) ?filter=entryState(hidden,ignored)
    Query Parameters:
    NameTypeRequiredDescription
    afterStringfalseDate/time representing the minimum timestamp for a returned action (cannot specify both after and before)
    beforeStringfalseDate/time representing the maximum timestamp for a returned action (cannot specify both after and before)
    countIntegerfalseMaximum number of notifications to return in this request
    fieldsStringfalseNames of the fields to be returned
    filterObject[]falseFilter expressions to limit the returned actions
    Retrieves:
  • Activity[] representing the selected actions
  • Return Status:
    HTTP Status CodeDescription
    200 (OK)Request was successful
    400 (Bad Request)An input parameter is missing or invalid
    403 (Forbidden)You are not allowed to access the requested actions

    Get Counts

    GET /actions/counts

    Return counting information about the actions of the person making the request.

    Field Description
    tasks Indicates number of tasks that are still pending.
    pending Indicates number of actions that are still pending.
    Retrieves:
  • counting information about the actions of the person making the request
  • Since: 3.4

    Perform Action

    POST /actions/{actionID}/actions/{caption}

    Programmatically perform the behavior corresponding to the specified caption. Typically this will cause a state change on Jive-generated actions, and may trigger a request to the specified target URI on app-generated actions. Then, return the updated information for this action.

    Path Parameters:
    NameTypeRequiredDescription
    actionIDStringtrueID of the action on which to perform the requested behavior
    captionStringtrueCaption (from an openSocial.actionLinks entry of this action) of the behavior to be taken
    Query Parameters:
    NameTypeRequiredDescription
    fieldsStringfalseField names to be returned in the updated action
    Retrieves:
  • Activity representing the updated action after applying any requested state change
  • Return Status:
    HTTP Status CodeDescription
    200 (OK)Request was successful
    400 (Bad Request)An input parameter is missing or invalid
    403 (Forbidden)You are not allowed to access the requested actions
    404 (Not Found)The specified action or caption cannot be found