Outcome
Outcome Service
Web service endpoints for outcome entries.
Create Outcome
POST /outcomes/{outcomeID}/outcomesCreate a new outcome as a child of the existing outcome with the specified characteristics.
Path Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| outcomeID | String | true | ID of the comment being replied to |
Query Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| fields | String | false | Fields to include in the returned Outcome |
Takes:
Retrieves:
Return Status:
| HTTP Status Code | Description |
|---|---|
| 201 (Created) | Request was successful |
| 400 (Bad Request) | An input field is missing or malformed |
| 409 (Conflict) | You attempted to add a comment to a content object that does not support them, or for which comments have been closed |
| 403 (Forbidden) | You are not allowed to perform this operation |
| 404 (Not Found) | The specified parent outcome object cannot be found |
Destroy Outcome
DELETE /outcomes/{outcomeID}Delete the outcome of the specified outcome entry by the requesting user.
Path Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| outcomeID | String | true | ID of the outcome for which a like is being removed |
Return Status:
| HTTP Status Code | Description |
|---|---|
| 204 (No Content) | Request was successful |
| 400 (Bad Request) | An input field is malformed |
| 409 (Conflict) | You do not currently have a like registered for this outcome |
| 403 (Forbidden) | You are not allowed to access or unlike this outcome |
| 404 (Not Found) | The specified outcome does not exist |
Get History
GET /outcomes/{outcomeID}/historyGet the history of the given outcome by following its parent outcomes.
Path Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| outcomeID | String | true | ID of the comment being replied to |
Query Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| fields | String | false | Fields to include in the returned Outcome |
Retrieves:
Return Status:
| HTTP Status Code | Description |
|---|---|
| 201 (Created) | Request was successful |
| 400 (Bad Request) | An input field is missing or malformed |
| 409 (Conflict) | You attempted to add a comment to a content object that does not support them, or for which comments have been closed |
| 403 (Forbidden) | You are not allowed to perform this operation |
| 404 (Not Found) | The specified parent outcome object cannot be found |
Get Outcome
GET /outcomes/{outcomeID}Return the specified outcome entry with the specified fields.
Path Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| outcomeID | String | true | ID of the outcome entry to be returned |
Query Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| fields | String | false | Fields to be returned |
Retrieves:
Return Status:
| HTTP Status Code | Description |
|---|---|
| 200 (OK) | Request was successful |
| 400 (Bad Request) | An input field is missing or malformed |
| 403 (Forbidden) | You are not allowed to access the specified outcome |
| 404 (Not Found) | The specified outcome does not exist |
Get Outcomes
GET /outcomesReturns a paginated list of outcomes that were created by the requesting person.
Query Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| startIndex | Integer | false | Zero-relative index of the first outcome to be returned |
| count | Integer | false | Maximum number of outcomes to be returned |
| hidden | Boolean | false | Include hidden/archieved in outcomes returned |
| fields | String | false | Fields to be returned on outcomes |
Takes:
Retrieves:
Return Status:
| HTTP Status Code | Description |
|---|---|
| 200 (OK) | Request was successful |
| 400 (Bad Request) | An input field is missing or malformed |
| 403 (Forbidden) | You are not allowed to access the specified outcome |
Update Outcome
PUT /outcomes/{outcomeID}Update the specified outcome with the specified characteristics.
Path Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| outcomeID | String | true | of the outcome to be updated |
Query Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| fields | String | false | Fields to include in the returned entity |
Takes:
Retrieves:
Return Status:
| HTTP Status Code | Description |
|---|---|
| 200 (OK) | Request was successful |
| 400 (Bad Request) | An input field is missing or malformed |
| 409 (Conflict) | You attempt to add a comment to a content object that does not support them, or for which comments have been closed |
| 403 (Forbidden) | You are not allowed to access the specified outcome |
| 404 (Not Found) | The specified comment does not exist |