https://<appId>.api-<region>.cometchat.io/v3/data_import/
data
record that conform with the restrictions as specified by the Send Message APIs.
The total message count of all imported messages must be within the limit shared in the import support ticket. Each record contains a unique message id referred to as muid
. The array key and the muid
value must be the same.
The return status for each muid
will be documented in the response messages under data.<muid>.success
. The value of this parameter can be:
true
: indicating import execution success for that muid
.false
: indicating import execution failure for that muid
.data.<muid>.error
.
Please note that the request can have many messages to be imported, each with a separate muid
. It is possible that a message may not be imported due to incorrect data supplied or a runtime error. In this case, its error code will be documented under its muid
structure in the response.
In case of such an error, correct the data being supplied in the API as per the error code indicated and resend the failed message data in a new API call. It is not expected to include the messages which were successfully imported in the preceding API call which resulted in the error for certain messages.
Visit Message Import API to start with your imports.
uid
value must be the same.
The return status for each uid
will be documented in the response messages under data.<uid>.success
. The value of this parameter can be:
true
-> indicating import execution success for that uid
.false
-> indicating import execution failure for that uid
.data.<uid>.error
.
Please note that the request can have many users to be imported, each with a separate uid
. It is possible that a user may not be imported due to incorrect data supplied or a runtime error. In this case, its error code will be documented under its uid
structure in the response.
In case of such an error, correct the data being supplied in the API as per the error code indicated and resend the failed user data in a new API call. It is not expected to include the users which were successfully imported in the preceding API call which resulted in the error for certain users.
Visit User Import API to start with your imports.