Update connector(s)Update one or more Updates connectors in Aspire. Updates will be treated as partial updates rather than overwrites. If a field is not present in the input, any previous value will remain after the update. If you wish to "delete" a value, pass a value of null, this endpoint need the ADMINISTRATOR role to be executed. Panel |
---|
borderColor | black |
---|
bgColor | #fafafb |
---|
| PUT /aspire/_api /connector/connectors/:id
PUT /aspire/_api/connectors
|
Path Request Body Parameters Name | Type | Required | Description |
---|
id | string | Required | The identifier of the connector to updateconnector |
Body Parameters
Name | Type | Required | Description |
---|
id | string | Required | The url/path indicating the content to crawl | type | string | Required | The type of connector to use for this connector (may be omitted if connector is specified) | connector | string | Required | The identifier of the connector configuration to use for this connector (may be omitted if type is specified)to update | description | string | OptionalxAn optional | The description of the connector | credentialproperties | stringobject | Optional | An optional id of the credential to use for this connector | policy | string | Optional | An optional list of the policy identifiers to use for this connector | workflow | string | Optional | An optional list of the workflow identifiers to use for this connector |
Examples x - at least one field must be present Example - update one Update a single connector
Code Block |
---|
| PUT /aspire/_api/connectors/600f70ef-7a90-4364-bdb9-7a9b5f81f6fe
{
{
"id": "AAABcID5GBc=600f70ef-7a90-4364-bdb9-7a9b5f81f6fe",
"connectordescription": "c:\\testdata\\2500NetApp - First- UPDATE",
"type"properties": {
"enableFetcher": "filesystemtrue",
} .....
}
} |
Example - update more Update multiple connectors
Code Block |
---|
| PUT /aspire/_api/connectors
{
"AAABcID5GBc=": {
[{
"id": "AAABcID5GBc=",
"connectordescription": "c:\\testdata\\2500Net App",
"typeproperties": "filesystem"
},
{
"idenableFetcher": "AAABcIueWUc="true",
.....
}
},
"connectorAAABcID5GBd=": "c:\\testdata\\250000",{
"connectorid": "connector_1AAABcID5GBd=",
"description": "250,000Sharepoint filesonline",
"credentialproperties": "cred_1",
{
"policyenableFetcher": "policy_1true",
.....
}
"workflow": ["workflow_1","workflow_99"] }
}] |
Response Code Block |
---|
| {
"connector": [{
"updated":true,"id": "AAABcID5GBc="},
"connector": "c:\\testdata\\2500",
"type": "filesystem",
"status": "N"
},
{"updated":true,"id":"AAABcID5GBd="}]} |
Status: 200, 404, 406
Section |
---|
Update connectors, filteredUpdate connectors configured in the Aspire, filtered by a specified criteria, this endpoint need the ADMINISTRATOR role to be executed. Panel |
---|
borderColor | black |
---|
bgColor | #fafafb |
---|
| PUT /aspire/_api/connectors/updateAll
|
Filters: The connector filter definition here Update body parameter: Code Block |
---|
| {
"update" : {
" | idAAABcIueWUc=,type"filesystem",
connectorc:\\testdata\\250000"connector": "connector_1","description": "250,000 files",
"credential
Response cred_1",
"policy": "policy_1",
"workflow": ["workflow_1","workflow_99"]
"status": "N"
}],update result response message"
} |
Status: 200, 406 |
|