create_case
¶
create_case(
domain_id: DomainId,
template_id: TemplateId,
fields: FieldValueList,
*,
config_overrides: Optional[ConnectCasesClientConfig] = None,
client_token: Optional[str] = None,
performed_by: Optional[UserUnion] = None,
tags: Optional[MutableTags] = None,
) -> CreateCaseResponse
If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser permission on the User ARN resource that you provide
Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.
When creating a case from a template that has tag propagation configurations, the specified tags are automatically applied to the case.
The following fields are required when creating a case:
-
customer_id- You must provide the full customer profile ARN in this format:arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID -
title
Parameters:
-
domain_id(DomainId) –The unique identifier of the Cases domain.
-
template_id(TemplateId) –A unique identifier of a template.
-
fields(FieldValueList) –An array of objects with field ID (matching ListFields/DescribeField) and value union data.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
tags(Optional[MutableTags], default:None) –A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
InternalServerException–We couldn't process your request because of an issue with the server. Try again later.
-
ResourceNotFoundException–We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.
-
ThrottlingException–The rate has been exceeded for this API. Please try again after a few minutes.
-
ValidationException–The request isn't valid. Check the syntax and try again.
-
UnknownServiceError–The service returned an error code this client does not model.