Mudanças na API do Mautic 3

Last modified: 27/05/2020
You are here:
Estimated reading time: < 1 min

O erro de chaves obsoletas e a descrição do erro nas respostas da API foram removidos.

Se o seu código verificar essas chaves em uma resposta, ele precisará ser alterado para verificar a chave de erros como essa {“errors”: [{“message”: “Ocorreu um erro”, “code”: 500}]}

O suporte para rotas obsoletas antigas foi removido. Substitua essas rotas pelas da direita.

Rota AntigaNova Rota
/api/campaigns/{id}/contact/add/{leadId}/api/campaigns/{id}/contact/{leadId}/add
/api/campaigns/{id}/contact/remove/{leadId}/api/campaigns/{id}/contact/{leadId}/remove
/api/companies/{companyId}/contact/add/{contactId}/api/companies/{companyId}/contact/{contactId}/add
/api/companies/{companyId}/contact/remove/{contactId}/api/companies/{companyId}/contact/{contactId}/remove
/api/contacts/{id}/dnc/add/{channel}/api/contacts/{id}/dnc/{channel}/add
/api/contacts/{id}/dnc/remove/{channel}/api/contacts/{id}/dnc/{channel}/remove
/api/contacts/{id}/events/api/contacts/{id}/activity
/api/emails/{id}/send/contact/{leadId}/api/emails/{id}/contact/{leadId}/send
/api/segments/{id}/contact/add/{leadId}/api/segments/{id}/contact/{leadId}/add
/api/segments/{id}/contact/remove/{leadId}/api/segments/{id}/contact/{leadId}/remove
/api/stages/{id}/contact/add/{contactId}/api/stages/{id}/contact/{contactId}/add
/api/stages/{id}/contact/remove/{contactId}/api/stages/{id}/contact/{contactId}/remove
Was this article helpful?
Dislike 0
Views: 48