{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"This endpoint updates an existing Integration.","properties":{"path":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Integration you would like to update."}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/definitions/IntegrationPatch","examples":[{"filters":{"email_events":["processed","open"]},"properties":{"write_key":"a123456","destination_region":"US"},"label":"Untitled Integration","destination":"Segment"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"IntegrationPatch":{"type":"object","properties":{"destination":{"allOf":[{"$ref":"#/definitions/Destination1"},{"type":"string"}]},"filters":{"type":"object","description":"The configurable filters for SendGrid to destination email event forwarding.","properties":{"email_events":{"type":"array","description":"The possible SendGrid email event types for event forwarding. Specify all the email event types that you would like to forward to the Integration's destination.","items":{"allOf":[{"$ref":"#/definitions/Items"},{"type":"string"}]}}}},"properties":{"type":"object","description":"The properties of an Integration required to send events to a specific third-party application.","properties":{"write_key":{"description":"The write key provided by the Segment Source you'd like to have events forwarded to. Must be between 6 and 51 characters.","type":"string","examples":["1234-abc"]},"destination_region":{"allOf":[{"$ref":"#/definitions/DestinationRegion"},{"type":"string"}]}}},"label":{"type":"string","default":"Untitled Integration","description":"The nickname for the Integration.","examples":["My New Segment Integration!"]}}},"Destination1":{"type":"string","enum":["Segment"]},"Items":{"type":"string","enum":["drop","processed","deferred","group_unsubscribe","bounce","delivered","click","unsubscribe","open","group_resubscribe","spamreport","machine_opened"]},"DestinationRegion":{"type":"string","enum":["EU","US"]}}},"name":"UpdateIntegration","id":"sendgrid.integrations.updateintegration","example":{"path":{"id":"example"},"body":{}},"maxRequests":1,"summary":false}}