Add Work Orders to Condition Assessments

Adds or links work orders to a given condition assessment.

Resource Information

Scope assessments
App Type Agency
Authorization Type Access token
URI /v4/assessments/{id}/workorders?lang={lang}
HTTP Method POST
Automation Version(s) 9.0.0

Request Information

Field or Parameter Type Required Values Description Automation Version
id string No Search Assessment The unique identifier of the assessment, assigned by the Civic Platform server. 9.0.0
lang String No   Indicates the language applied. 9.0.0
relatedRecordIds[] string No Get All Records Search Records Get My Records An array of work order record IDs to be linked to the assessment. 9.0.0

Example

Sample Request Head

POST https://apis.accela.com/v4/assessments/2005/workorders

Sample Request Body

[
  "REC16-00000-00FNS",
  "REN16-00000-00G19"
]

Response Information

Field Type Description Automation Version
result[] result{}   9.0.0
result.code string A code identifying an associated item 9.0.0
result.id string The added work order's Civic Platform id. 9.0.0
result.isSuccess boolean Indicates whether or not the operation on the item is successful. 9.0.0
result.message string A text message related to the operation. 9.0.0
status integer The request status. 9.0.0

Example

Sample Response Body

{
  "status": 200,
  "result": [
    {
      "id": "BPTDEV-REC16-00000-00FNS"
    },
    {
      "id": "BPTDEV-REN16-00000-00G19"
    }
  ]
}