This endpoints updates a sms
| URL | https://api.telecomx.dk/flexcare/videochat/sms/SMS_ID | ||
|---|---|---|---|
| Method | POST | ||
| Access level | RESELLER, ADMIN | ||
| Params | SMS_ID | Id of the sms | |
| Body | _id | ObjectId | Id of sms |
| customer | ObjectId | Id of the customer | |
| name | String | Name of the message | |
| message | String | Sms message to send to invites | |
https://api.telecomx.dk/flexcare/videochat/sms/1234567890123457890CCCC
| JSON object | ||
|---|---|---|
| sms | Array | List of sms's |
| sms []._id | ObjectId | Unique id of a sms. |
| sms [].customer | ObjectId | Id of the customer. |
| sms [].name | String | Name of the message. |
| sms [].message | String | The message to send. |
{ sms: [ { _id: ObjectId('1234567890123457890CCCC'), customer: ObjectId('1234567890123457890CCCC'), name: 'Sundhed undersøgelse', message: 'Til at deltage i mødet tryk på linket %meeting_url%' } ] }
| Error code | Message | Description |
|---|---|---|
| 403 | token | Access denied |
| 404 | sms | SMS not found |
| 404 | customer | Customer not found |
| 422 | Invalid data | Data is not valid in query or body |
| 500 | internal_error | <Unspecified> |