Some changes in this call need a fresh second factor. A token cannot give a second factor, so such a change gets 403 auth.api_token_not_allowed. Make it in the console.
Update an existing connector's configuration
Parameters
Connector ID (UUID)
Request body application/json · UpdateConnectorRequest
Connector update request
2 fields
Interval of scheduled syncs as an ISO 8601 duration (PT15M, PT1H, P1D, P1W), at least 5 minutes: a shorter one, PT0M or P0D included, is rejected with 400. A schedule sent back unchanged is kept as stored.
Provider settings. GitLab and GitHub use canonical names: base_url, groups, excluded_group_suffixes, page_size, root_ca and insecure_skip_verify (GitLab: a PEM CA certificate of a self-managed server and whether to accept any server certificate. Changing either needs a new token), include_outside_collaborators and sync_bot_and_service_accounts (GitHub). Old names (url, baseUrl, api_url, group, pageSize, excludedGroups, excluded_groups, exclude_group_suffixes, includeOutsideCollaborators, syncBotAndServiceAccounts) are deprecated and accepted until 2027-01-01: they are saved under the canonical names, and names of one setting with different values are rejected with 400. LDAP uses url (ldap:// or ldaps://), start_tls, insecure_skip_verify, root_ca, directory_type (active_directory or openldap), bind_dn, user_base_dn, user_filter, group_base_dn, group_filter, groups and excluded_group_suffixes. Its credential is bind_password.
Responses
OK
ConnectorResponse · 17 fields
pendingrunningcompletedfailedrequires_approval 2 fields
True when the field mapping is the provider default Principal stores for a new connector.
The settings the connector uses, under canonical names only (base_url, groups, excluded_group_suffixes, page_size, include_outside_collaborators, sync_bot_and_service_accounts): a value stored under an old name is shown under its canonical name, and where names disagree the value the connector uses is shown. Clients show and send this form.
Canonical settings the stored spec names under several names with different values. Spec shows the value the connector uses for each. Saving the connector with the shown settings resolves them.
gitlabgooglegithubldapkubernetescustomThe sync a connector has not finished, whoever queued it (Run sync now, an approval or the schedule): its state, its attempts and, after a failed attempt the queue retries, when the next one may start and why the last one failed. Reads of connectors carry it. A connector without an unfinished sync has none.
8 fields
Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.
queuedrunningfinishedFinal operation result, or null while the operation is active.
successfailurecancelledpartialAttempts that ran and failed.
When the next attempt may start after a failed one.
Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.
8 fields
Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.
ACCESS_PROFILE_STALE AMBIGUOUS_TARGET_OUTCOME APPLY_INTERRUPTED AUTHENTICATION_FAILED CLICKHOUSE_REPLICAS_OUT_OF_SYNC CLICKHOUSE_USER_NAME_RESERVED CONNECTION_FAILED CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTOR_CREDENTIALS_MISSING CONNECTOR_PAUSED CONNECTOR_SOURCE_CHANGED CONNECTOR_TYPE_UNAVAILABLE CONSTRAINT_VIOLATION CREDENTIAL_EXPIRED CREDENTIAL_NOT_FOUND DATABASE_NOT_FOUND DRIFT_BINDING_NOT_FOUND DRIFT_DEFAULT_INHERITED_SKIPPED DRIFT_NO_EXECUTABLE_DIFF DRIFT_PARTIAL_APPLY DRIFT_PLAN_GENERATION_FAILED DRIFT_RESOURCE_MISMATCH DRIFT_RULE_DELETING DRIFT_RUN_OUTDATED DRIFT_SCOPE_MISMATCH GROUP_EXPANSION_LIMIT_EXCEEDED HANDLER_NOT_FOUND K8S_CHANGE_REJECTED K8S_CLUSTER_UNREACHABLE K8S_NAMESPACE_FORBIDDEN K8S_NAMESPACE_NOT_FOUND K8S_RBAC_FORBIDDEN KUBERNETES_MEMBER_CREDENTIALS_PENDING KUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUED MARIADB_TRUNCATE_UNSUPPORTED MARIADB_USAGE_UNSUPPORTED MARIADB_GRANTS_AMBIGUOUS MUTATION_LOCKED MYSQL_MANAGEMENT_PRIVILEGES_MISSING 34 more values
NOT_FOUND OPERATION_BACKOFF OPERATION_CANCELLED OPERATION_TIMEOUT OWNED_OBJECTS_DECISION_REQUIRED PERMISSION_DENIED PLAN_APPLY_ARTIFACT_INVALID PLAN_APPLY_ORPHANED_LOCK PLAN_APPLY_ROLLBACK_BASELINE_INVALID PLAN_APPLY_RULE_CHANGED PLAN_APPLY_TARGET_STATE_CHANGED PLAN_APPLY_ACCESS_IMPACT_CHANGED POSTGRES_FUTURE_OBJECT_CREATORS_MISSING POSTGRES_GRANT_AUTHORITY_MISSING POSTGRES_MANAGEMENT_PRIVILEGES_MISSING POSTGRES_ROLE_ATTRIBUTE_UNSUPPORTED POSTGRES_ROLE_NAME_RESERVED POSTGRES_TLS_FILE_NOT_ALLOWED PROVIDER_REQUEST_FAILED RATE_LIMITED ROLE_EXISTS ROLE_NOT_FOUND ROTATION_CHECK_REQUIRED SECRET_STORE_UNAVAILABLE SERIALIZATION_ERROR TARGET_ACCOUNT_IDENTITY_MISMATCH TARGET_ACCOUNT_IDENTITY_UNVERIFIED TARGET_ACCOUNT_IMPORT_PENDING TARGET_ACCOUNT_PRINCIPAL_LOGIN TARGET_ACCOUNT_TAKEN TARGET_CONNECTION_MISSING TARGET_REPAIR_REQUIRED UNKNOWN_ERROR VALIDATION_FAILED Short name of the failure from the same registry, for lists and queues where the explanation is too long. Absent on failures saved before the field existed.
Whether the failed attempt was eligible for an automatic retry under the actual queue policy.
Known operation phase at failure, when available.
Stable code of the action that can resolve this failure, the same vocabulary as a problem's resolution.code, for example upstream.check_connection. Absent when no single action does. A screen that offers the action shows it next to the failure, otherwise it shows recommended_action.
The Kubernetes cluster's own answer to a change its admission policy or webhook refused: the policy or webhook name and its message. Only a step failure with code K8S_CHANGE_REJECTED carries it, as plain text without control characters, cut to 500 characters. The cluster administrator writes it, not Principal. Given only to callers with access:read in the rule's organization. Absent for runs saved before the field existed.
Conflict - connector changed concurrently, another connector mutation is in progress, or the new address names another GitLab installation than the one the connector's users came from
connector.credentials_missing: the update sends no new credentials and the saved token or service account key is missing from the secret store, so Principal can't check the connector. resolution.code is connector.edit_credentials: send the credentials again with the update.
Common errors: 400 401 403 404 413 429 503 504. They mean the same for every operation, see Errors.