Skip to content

SOR43 - Create a thread on a service order

Request

Call Frequency
Maximum usage: At each new message posted on a service order
Path
order_idstringrequired

The identifier of the order on which the thread is created.

Query
shop_idinteger, (int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

Bodymultipart/form-data
filesArray of strings, (binary)

List of attachments for the first message of the thread

thread_inputobjectrequired

The content of the thread: body, topic, participants...

curl -i -X POST \
  https://your-instance.mirakl.net/api/mms/orders/{order_id}/threads \
  -H 'Content-Type: multipart/form-data' \
  -F 'files=@path/to/file' \
  -F 'thread_input="{\"body\":\"string\",\"to\":[\"OPERATOR\"],\"topic\":{\"type\":\"FREE_TEXT\",\"value\":\"string\"}}";type=application/json'

Responses

Created

Bodyapplication/json
message_idstringrequired

Id of the first message created on the thread

thread_idstringrequired

Id of the created thread

Response
{ "message_id": "f3e8abe6-6966-42bd-9788-4531035d5d8f", "thread_id": "a515927a-5720-4689-bf1f-b6e4ae5e12ea" }