| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ConnectCases.UpdateCase
Description
Updates the values of fields on a case. Fields to be updated are
received as an array of id/value pairs identical to the CreateCase
input .
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Synopsis
- data UpdateCase = UpdateCase' {}
- newUpdateCase :: Text -> Text -> UpdateCase
- updateCase_caseId :: Lens' UpdateCase Text
- updateCase_domainId :: Lens' UpdateCase Text
- updateCase_fields :: Lens' UpdateCase [FieldValue]
- data UpdateCaseResponse = UpdateCaseResponse' {
- httpStatus :: Int
- newUpdateCaseResponse :: Int -> UpdateCaseResponse
- updateCaseResponse_httpStatus :: Lens' UpdateCaseResponse Int
Creating a Request
data UpdateCase Source #
See: newUpdateCase smart constructor.
Constructors
| UpdateCase' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateCase |
Create a value of UpdateCase with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateCase, updateCase_caseId - A unique identifier of the case.
UpdateCase, updateCase_domainId - The unique identifier of the Cases domain.
UpdateCase, updateCase_fields - An array of objects with fieldId (matching ListFields/DescribeField)
and value union data, structured identical to CreateCase.
Request Lenses
updateCase_caseId :: Lens' UpdateCase Text Source #
A unique identifier of the case.
updateCase_domainId :: Lens' UpdateCase Text Source #
The unique identifier of the Cases domain.
updateCase_fields :: Lens' UpdateCase [FieldValue] Source #
An array of objects with fieldId (matching ListFields/DescribeField)
and value union data, structured identical to CreateCase.
Destructuring the Response
data UpdateCaseResponse Source #
See: newUpdateCaseResponse smart constructor.
Constructors
| UpdateCaseResponse' | |
Fields
| |
Instances
newUpdateCaseResponse Source #
Arguments
| :: Int | |
| -> UpdateCaseResponse |
Create a value of UpdateCaseResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateCaseResponse', updateCaseResponse_httpStatus - The response's http status code.
Response Lenses
updateCaseResponse_httpStatus :: Lens' UpdateCaseResponse Int Source #
The response's http status code.