public String alterSinkConnectorOffset(String connectorName, TopicPartition topicPartition, Long offset) {
        return alterConnectorOffsets(
                connectorName,
                SinkUtils.consumerGroupOffsetsToConnectorOffsets(Collections.singletonMap(topicPartition, new OffsetAndMetadata(offset)))
        );
    }
Alter the offset for a sink connector's topic partition via the <strong><em>PATCH /connectors/{connector}/offsets</em></strong>
endpoint

@param connectorName name of the sink connector whose offset is to be altered
@param topicPartition the topic partition for which the offset is to be altered
@param offset the offset to be written

@return the API response as a {@link java.lang.String}
connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedConnect.java