V1::IntegrationsController
Integrations
index
Get a list of integrations
URL
GET /integrationsObjeto resposta
Array<integration> | The created integrations |
show
Get a integration information
URL
GET /integrations/:id orParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | of the integration |
Objeto resposta
integration | The requested integration |
create
Create new integration
URL
POST /integrationsParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
integration | Hash | The integration to create |
integration[owner_type] | String | The type of the owner |
integration[owner_id] | Integer | The id of the owner |
Parâmetros opcionais
Nome | Tipo | Descrição |
---|---|---|
integration[metadata] | Hash | Events to trigger |
integration[metaconfig] | Hash | Integration config |
integration[active] | Boolean | The status of the integration |
integration[type] | String | The type of the integration |
Objeto resposta
integration | The created integration or a list of errors |
update
Update an existing integration and redirect to 'show' action
URL
PUT/PATCH /integrations/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
integration | Hash | The integration to create |
integration[owner_type] | String | The type of the owner |
integration[owner_id] | Integer | The id of the owner |
Parâmetros opcionais
Nome | Tipo | Descrição |
---|---|---|
integration[metadata] | Hash | Events to trigger |
integration[metaconfig] | Hash | Integration config |
integration[active] | Boolean | The status of the integration |
integration[type] | String | The type of the integration |
Objeto resposta
integration | The created integration or a list of errors |
destroy
Destroy integration
URL
DELETE /integrations/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | Id of an integration |
suggestions
Send integration suggestion