Updates flags for a given list of entities. If the entity does not currently have a flag, one will be created.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| entityType | The type of entity the flag is being request for. Supported values are: “Bill” | string | Required |
Request Body
FlagListAction
| Property | Description | Type | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| entityIds | The entities to update Required (defined) | integer[] | ||||||||||||||||||||||||
| flagAction | FlagEdit | |||||||||||||||||||||||||
|
FlagEdit properties
|
||||||||||||||||||||||||||
Example Request Body
{ "entityIds": [
1
], "flagAction": { "assignees": [
1
], "comment": "string", "costRecovery": 1.0, "flagStatusId": 1, "flagTypeId": 1, "holdFromExport": false, "releaseExportHold": false
}
}
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
UpdateResult
| Property | Description | Type |
|---|---|---|
| selected | Required (defined) | integer (int32) |
| updated | Required (defined) | integer (int32) |
Example Response
{ "selected": 1, "updated": 1
}