put https://slemma.com/api/v1/integrations
Creates a new Integration Object. The API currently supports only creation Integrations to databases.
Returns
Returns a new Integration object if the call succeeded.
The following are the examples of HTTP status codes including errors that API can generate
Response codes | Response content | Description |
---|---|---|
200 OK | An integration object | An integration has been created successfully. |
400 Bad Request | Incorrect property ExtType | The ExtType that was specified is invalid. |
400 Bad Request | Incorrect SourceType for this integration | The Source Type that was specified is invalid. |
400 Bad Request | The Name cannot be empty | The field "Name" cannot be empty. |
400 Bad Request | The SourceType cannot be empty | The field "SourceType" cannot be empty. |
400 Bad Request | This Source type unsupported | The Source Type that was specified was 'ChartConnector'. Possible values are 'Flat' for MongoDB and 'Cube' for the rest. |
400 Bad Request | The ConnectionString cannot be empty | The field "ConnectionString" cannot be empty. |
400 Bad Request | The ServerName cannot be empty | The field "ServerName" cannot be empty. |
400 Bad Request | The Database cannot be empty | The field "Database" cannot be empty. |
400 Bad Request | The Driver cannot be empty | The field "Driver" cannot be empty. |
400 Bad Request | The 'Driver' and 'ExtType' are inconsistent | The value that was specified for 'Driver' parameter doesn't match the specified 'ExtType' value. Check the reference table. |
400 Bad Request | For example: The value of the property 'value' does not match the list of allowed values - ['value1','value2','value3'] | The value of the property does not match the list of allowed values. |